diff options
author | Paul Fertser <fercerpav@gmail.com> | 2009-10-17 04:47:35 +0400 |
---|---|---|
committer | Paul Fertser <fercerpav@gmail.com> | 2009-10-17 04:52:57 +0400 |
commit | 350d5560bb262e73e1f1c05bf488fea6750a52d6 (patch) | |
tree | 46a2abf96452b8c7abcb206dba8176e60083e23e /drivers/power/pcf50606-charger.c | |
parent | 3daf677d5e8e4d6a89845952e0a503c4bd57e456 (diff) |
Fix memleak in pcf50633_client_dev_registe
Ported from 207ec43e8c5a54dfc82a0e65af5b8f2765e3cbb8
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++) |