浏览代码

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>
Takeshi Yoshimura 10 年之前
父节点
当前提交
a1cab5bb87
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/power/88pm860x_charger.c

+ 0 - 1
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;