diff options
Diffstat (limited to 'drivers/power/pcf50606-charger.c')
-rw-r--r-- | drivers/power/pcf50606-charger.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/power/pcf50606-charger.c b/drivers/power/pcf50606-charger.c index a566fe3ed56..f90c5ed25b3 100644 --- a/drivers/power/pcf50606-charger.c +++ b/drivers/power/pcf50606-charger.c @@ -159,7 +159,6 @@ static const u8 mbc_irq_handlers[] = { static int __devinit pcf50606_mbc_probe(struct platform_device *pdev) { struct pcf50606_mbc *mbc; - struct pcf50606_subdev_pdata *pdata = pdev->dev.platform_data; int ret; int i; u8 oocs; @@ -169,7 +168,7 @@ static int __devinit pcf50606_mbc_probe(struct platform_device *pdev) return -ENOMEM; platform_set_drvdata(pdev, mbc); - mbc->pcf = pdata->pcf; + mbc->pcf = dev_to_pcf50606(pdev->dev.parent); /* Set up IRQ handlers */ for (i = 0; i < ARRAY_SIZE(mbc_irq_handlers); i++) |