commit | baf73e2c4e25aa57a7bd5df90a93e65be0542c74 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Wed Jun 20 16:13:15 2012 +0800 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed Jun 20 11:18:38 2012 +0100 |
tree | b09c903aa74c239f30a550f8de6abb433ad991bd | |
parent | f503071b03dcac6908fb7e051cfc9c45bea084c0 [diff] |
regulator: lp872x: Return -EINVAL if pdata is NULL Return -EINVAL if pdata is NULL, otherwise we have NULL dereference bug. This patch also moves the code checking pdata earlier in lp872x_probe. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>