ab8500_btemp: Harden platform data check
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 13 Apr 2012 08:16:06 +0000 (10:16 +0200)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Sat, 5 May 2012 10:59:47 +0000 (03:59 -0700)
commitec511672b97383107d87e86921b1f0392bc1d000
tree938e81a3e423ed76410d844eac9699bdddda4e04
parentcc28e17100a6b051ef966de81bb2d4a97b2a6645
ab8500_btemp: 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_btemp.c