wm97xx_battery: Handle missing platform data gracefully
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 27 Jan 2010 20:43:21 +0000 (20:43 +0000)
committerAnton Vorontsov <avorontsov@ru.mvista.com>
Fri, 29 Jan 2010 14:00:18 +0000 (17:00 +0300)
commit12b336a8b4ea8652372f88521bf55cef7f5d5283
tree81f448a4c122a03c2d52d95a838e5f8af4e12693
parentbe8cde8b24c9dca1e54598690115eee5b1476519
wm97xx_battery: Handle missing platform data gracefully

Don't unconditionally dereference the WM97xx core platform data since
it may not be present, causing an oops.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
drivers/power/wm97xx_battery.c