regulator: mc13783: bail out without platform data
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 29 Feb 2012 08:01:40 +0000 (09:01 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 20:48:44 +0000 (20:48 +0000)
commit0757b6020f5aaa9f770068ca0396c0ea5cb0740d
treed966940e0e507f7caba5db286d41d901b9b4da62
parent3bf6e90e476fb34ca47b6dda270f41d9cebcb1ac
regulator: mc13783: bail out without platform data

the platform data pointer is used without checking it. Bail out
in the driver instead of crashing the kernel.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/mc13783-regulator.c