]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: max8907: Properly set pmic pointer in max8907_regulator_remove()
authorAxel Lin <axel.lin@gmail.com>
Sat, 18 Aug 2012 06:33:05 +0000 (14:33 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 Aug 2012 18:00:29 +0000 (11:00 -0700)
commit9718608911405231c9f9c314aa18a6f7610b7bc9
tree6ce5f9d3f09732b861c7d31dfdf8719a781952de
parent1d4f45520e7f6f732537d36ee86a585f482db37e
regulator: max8907: Properly set pmic pointer in max8907_regulator_remove()

Add missing platform_get_drvdata() call in max8907_regulator_remove(), this
fixes below build warning:

  CC [M]  drivers/regulator/max8907-regulator.o
drivers/regulator/max8907-regulator.c: In function 'max8907_regulator_remove':
drivers/regulator/max8907-regulator.c:353:23: warning: 'pmic' is used uninitialized in this function [-Wuninitialized]

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/max8907-regulator.c