diff options
author | Kyle Manna <kyle@kylemanna.com> | 2011-08-11 23:33:12 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-09-06 10:37:59 -0400 |
commit | 66cc5b8e50af87b0bbd0f179d76d2826f4549c13 (patch) | |
tree | 1984035e6b94e728709fecfeb525c66d590f6379 /drivers/mfd | |
parent | aa9d842c5f2da6cdef2777f2f062f61898be89d3 (diff) |
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/twl4030-madc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c index b5d598c3aa71..cb44b53dee35 100644 --- a/drivers/mfd/twl4030-madc.c +++ b/drivers/mfd/twl4030-madc.c | |||
@@ -706,6 +706,8 @@ static int __devinit twl4030_madc_probe(struct platform_device *pdev) | |||
706 | if (!madc) | 706 | if (!madc) |
707 | return -ENOMEM; | 707 | return -ENOMEM; |
708 | 708 | ||
709 | madc->dev = &pdev->dev; | ||
710 | |||
709 | /* | 711 | /* |
710 | * Phoenix provides 2 interrupt lines. The first one is connected to | 712 | * Phoenix provides 2 interrupt lines. The first one is connected to |
711 | * the OMAP. The other one can be connected to the other processor such | 713 | * the OMAP. The other one can be connected to the other processor such |