From: anish kumar Date: Mon, 22 Oct 2012 01:11:43 +0000 (+0900) Subject: extcon: trivial: kfree missed from remove path X-Git-Tag: upstream/snapshot3+hdmi~6331^2~2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=44b7bccf7c5372eab3408593ab2142a5dcde03f6;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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 Signed-off-by: Chanwoo Choi Signed-off-by: MyungJoo Ham --- diff --git a/drivers/extcon/extcon-max77693.c b/drivers/extcon/extcon-max77693.c index cffeab6..a17d0d9 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;