diff options
-rw-r--r-- | drivers/gpio/gpio-xilinx.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-xilinx.c b/drivers/gpio/gpio-xilinx.c index e89fb42..61243d1 100644 --- a/drivers/gpio/gpio-xilinx.c +++ b/drivers/gpio/gpio-xilinx.c @@ -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; } |