]> git.karo-electronics.de Git - linux-beck.git/commit
ab8500_fg: Harden platform data check
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Apr 2012 08:16:13 +0000 (10:16 +0200)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 10:59:56 +0000 (03:59 -0700)
commit5f98eb393c6d7a5de3202b7ce9e4439292e952fb
treee7c4003b3a34a8420713c066d8c33c19c91780a9
parentec511672b97383107d87e86921b1f0392bc1d000
ab8500_fg: Harden platform data check

If no platform data at all is supplied the driver crashes,
extend the checks to be more careful so we can compile in the
driver and boot also without platform data present.

Acked-by: Arun Murthy <arun.murthy@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
drivers/power/ab8500_fg.c