mfd: Check for twl4030-madc NULL pointer
commitd0e84caeb4cd535923884735906e5730329505b4
authorKyle Manna <kyle@kylemanna.com>
Fri, 12 Aug 2011 03:33:14 +0000 (11 22:33 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Sep 2011 14:37:59 +0000 (6 16:37 +0200)
tree409b5168a878ea302d1aeff50c26369da177f000
parent66cc5b8e50af87b0bbd0f179d76d2826f4549c13
mfd: Check for twl4030-madc NULL pointer

If the twl4030-madc device wasn't registered, and another device, such
as twl4030-madc-hwmon, calls twl4030_madc_conversion() a NULL pointer is
dereferenced.

Signed-off-by: Kyle Manna <kyle@kylemanna.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/twl4030-madc.c