From: Kyle Manna Date: Fri, 12 Aug 2011 03:33:12 +0000 (-0500) Subject: mfd: Copy the device pointer to the twl4030-madc structure X-Git-Tag: firefly_0821_release~7541^2~2024 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3ad5a4fbba0c5c863b0a42e2a6a5007de76d3102;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Samuel Ortiz --- 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) if (!madc) return -ENOMEM; + madc->dev = &pdev->dev; + /* * Phoenix provides 2 interrupt lines. The first one is connected to * the OMAP. The other one can be connected to the other processor such