Messages in this thread Patch in this message | | | From | Takeshi Yoshimura <> | Subject | [PATCH 1/1] power_supply: 88pm860x_charger: Do not call free_irq() twice | Date | Fri, 29 May 2015 13:16:43 +0000 |
| |
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 <yos@sslab.ics.keio.ac.jp> --- drivers/power/88pm860x_charger.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/power/88pm860x_charger.c b/drivers/power/88pm860x_charger.c index 0e448c6..297e72d 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; -- 2.1.0
| |