Skip to content

Commit

Permalink
mfd: Copy the device pointer to the twl4030-madc structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kyle Manna authored and Samuel Ortiz committed Sep 6, 2011
1 parent aa9d842 commit 66cc5b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/mfd/twl4030-madc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66cc5b8

Please sign in to comment.