aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorTakeshi Yoshimura <yos@sslab.ics.keio.ac.jp>2015-05-29 09:16:43 -0400
committerSebastian Reichel <sre@kernel.org>2015-05-29 10:06:10 -0400
commita1cab5bb872507cb8594eb4010450fed7c48cdf2 (patch)
tree822ac135cf75cdb381a7398fe60be3fc6a01eaa6 /drivers/power
parentcd054ee16580690830297dbda0abe9c184276d6a (diff)
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')
-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)
742 int i; 742 int i;
743 743
744 power_supply_unregister(info->usb); 744 power_supply_unregister(info->usb);
745 free_irq(info->irq[0], info);
746 for (i = 0; i < info->irq_nums; i++) 745 for (i = 0; i < info->irq_nums; i++)
747 free_irq(info->irq[i], info); 746 free_irq(info->irq[i], info);
748 return 0; 747 return 0;