提交 81d49ce8 编写于 作者: A Axel Lin 提交者: Linus Walleij

gpio: tb10x: Drop unneeded free_irq() call

Current code uses devm_request_irq() in .probe, so drop the unneeded
free_irq() call in .remove.
Signed-off-by: NAxel Lin <axel.lin@ingics.com>
Acked-by: NChristian Ruppert <christian.ruppert@alitech.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 61e749d7
......@@ -292,7 +292,6 @@ static int tb10x_gpio_remove(struct platform_device *pdev)
BIT(tb10x_gpio->gc.ngpio) - 1, 0, 0);
kfree(tb10x_gpio->domain->gc);
irq_domain_remove(tb10x_gpio->domain);
free_irq(tb10x_gpio->irq, tb10x_gpio);
}
gpiochip_remove(&tb10x_gpio->gc);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册