Commit c458e450 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by 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: default avatarAlexandre Courbot <gnurou@gmail.com>
Signed-off-by: default avatarRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment