summaryrefslogtreecommitdiff
path: root/drivers/power/88pm860x_charger.c
diff options
context:
space:
mode:
authorTakeshi Yoshimura <yos@sslab.ics.keio.ac.jp>2015-05-29 16:16:43 +0300
committerSebastian Reichel <sre@kernel.org>2015-05-29 17:06:10 +0300
commita1cab5bb872507cb8594eb4010450fed7c48cdf2 (patch)
tree822ac135cf75cdb381a7398fe60be3fc6a01eaa6 /drivers/power/88pm860x_charger.c
parentcd054ee16580690830297dbda0abe9c184276d6a (diff)
downloadlinux-a1cab5bb872507cb8594eb4010450fed7c48cdf2.tar.xz
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 <yos@sslab.ics.keio.ac.jp> Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/88pm860x_charger.c')
-rw-r--r--drivers/power/88pm860x_charger.c1
1 files changed, 0 insertions, 1 deletions
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;