提交 c458e450 编写于 作者: R Ricardo Ribalda Delgado 提交者: Linus Walleij

gpio/xilinx: Use of_mm_gpiochip_remove

Use the newly created of_mm_gpiochip_remove function for cleaning up
of_mm_gpiochip_add
Suggested-by: NAlexandre Courbot <gnurou@gmail.com>
Signed-off-by: NRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 d621e8ba
......@@ -236,10 +236,7 @@ static int xgpio_remove(struct platform_device *pdev)
{
struct xgpio_instance *chip = platform_get_drvdata(pdev);
gpiochip_remove(&chip->mmchip.gc);
iounmap(chip->mmchip.regs);
kfree(chip->mmchip.gc.label);
of_mm_gpiochip_remove(&chip->mmchip);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册