aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/arizona-micsupp.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-06-20 16:13:15 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-06-20 11:18:38 +0100
commitbaf73e2c4e25aa57a7bd5df90a93e65be0542c74 (patch)
treeb09c903aa74c239f30a550f8de6abb433ad991bd /drivers/regulator/arizona-micsupp.c
parentregulator: max77686: Implement .set_ramp_delay() callback (diff)
downloadlinux-dev-baf73e2c4e25aa57a7bd5df90a93e65be0542c74.tar.xz
linux-dev-baf73e2c4e25aa57a7bd5df90a93e65be0542c74.zip
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>
Diffstat (limited to 'drivers/regulator/arizona-micsupp.c')
0 files changed, 0 insertions, 0 deletions