diff options
author | anish kumar <anish198519851985@gmail.com> | 2012-10-22 03:11:43 +0200 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2012-10-23 09:32:17 +0200 |
commit | 44b7bccf7c5372eab3408593ab2142a5dcde03f6 (patch) | |
tree | 7f50aa5545d9e24c7a82bb0a9e2c24fd704b7a6b /drivers/extcon | |
parent | extcon: driver model release call not needed (diff) | |
download | linux-44b7bccf7c5372eab3408593ab2142a5dcde03f6.tar.xz linux-44b7bccf7c5372eab3408593ab2142a5dcde03f6.zip |
extcon: trivial: kfree missed from remove path
Extcon core doesn't free the memory when we do unregister.
Kfree is added in the remove path as it was missing.
Signed-off-by: anish kumar <anish198519851985@gmail.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-max77693.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index cffeab65051e..a17d0d91ada2 100644 --- a/drivers/extcon/extcon-max77693.c +++ b/drivers/extcon/extcon-max77693.c @@ -783,6 +783,7 @@ static int __devexit max77693_muic_remove(struct platform_device *pdev) free_irq(muic_irqs[i].virq, info); cancel_work_sync(&info->irq_work); extcon_dev_unregister(info->edev); + kfree(info->edev); kfree(info); return 0; |