mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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: Alexandre Courbot <gnurou@gmail.com> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
d621e8bae5
commit
c458e45045
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue