From: Takeshi Yoshimura Date: Fri, 29 May 2015 13:16:43 +0000 (+0000) Subject: power_supply: 88pm860x_charger: Do not call free_irq() twice X-Git-Tag: v4.2-rc1~145^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a1cab5bb872507cb8594eb4010450fed7c48cdf2;p=karo-tx-linux.git power_supply: 88pm860x_charger: Do not call free_irq() twice My static checker detected double free_irq() in pm860x_charger_remove(). Unloading this module always causes a warning. This patch removes the first redundant free_irq() call. Signed-off-by: Takeshi Yoshimura Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/88pm860x_charger.c b/drivers/power/88pm860x_charger.c index 0e448c68c02b..297e72dc70e6 100644 --- a/drivers/power/88pm860x_charger.c +++ b/drivers/power/88pm860x_charger.c @@ -742,7 +742,6 @@ static int pm860x_charger_remove(struct platform_device *pdev) int i; power_supply_unregister(info->usb); - free_irq(info->irq[0], info); for (i = 0; i < info->irq_nums; i++) free_irq(info->irq[i], info); return 0;