Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c458e450 authored by Ricardo Ribalda Delgado's avatar Ricardo Ribalda Delgado Committed by Linus Walleij
Browse files

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
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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;
}