diff mbox

mfd: twl4030: Driver for twl4030 madc module

Message ID 4C448F8B.7060908@panicking.kicks-ass.org (mailing list archive)
State New, archived
Headers show

Commit Message

michael July 19, 2010, 5:46 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/mfd/twl4030-madc.c b/drivers/mfd/twl4030-madc.c
index 2d2aa87..e12ac1a 100644
--- a/drivers/mfd/twl4030-madc.c
+++ b/drivers/mfd/twl4030-madc.c
@@ -478,6 +478,7 @@  static int __init twl4030_madc_probe(struct platform_device 
 
        madc->imr = (pdata->irq_line == 1) ? TWL4030_MADC_IMR1 : TWL4030_MADC_IM
        madc->isr = (pdata->irq_line == 1) ? TWL4030_MADC_ISR1 : TWL4030_MADC_IS
+       madc->dev = &pdev->dev;
 
        ret = misc_register(&twl4030_madc_device);
        if (ret) {