mfd: Copy the device pointer to the twl4030-madc structure
commit3ad5a4fbba0c5c863b0a42e2a6a5007de76d3102
authorKyle Manna <kyle@kylemanna.com>
Fri, 12 Aug 2011 03:33:12 +0000 (11 22:33 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 6 Jan 2012 22:14:11 +0000 (6 14:14 -0800)
tree9f1c3a12fbbffc72c413d2025fbaaffe774b523e
parent4838b7e04451e425895c77f462ae1a70d6d3ff62
mfd: Copy the device pointer to the twl4030-madc structure

commit 66cc5b8e50af87b0bbd0f179d76d2826f4549c13 upstream.

Worst case this fixes the following error:
[   72.086212] (NULL device *): conversion timeout!

Best case it prevents a crash

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