mfd: Copy the device pointer to the twl4030-madc structure
authorKyle Manna <kyle@kylemanna.com>
Fri, 12 Aug 2011 03:33:12 +0000 (22:33 -0500)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 6 Sep 2011 14:37:59 +0000 (16:37 +0200)
commit66cc5b8e50af87b0bbd0f179d76d2826f4549c13
tree1984035e6b94e728709fecfeb525c66d590f6379
parentaa9d842c5f2da6cdef2777f2f062f61898be89d3
mfd: Copy the device pointer to the twl4030-madc structure

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