Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: altera-a10sr: Drop unnecessary gpiochip_remove

It's not necessary to unregister gpio_chip which registered
with devm_gpiochip_add_data().
Also get rid of useless altr_a10sr_gpio_remove().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Wei Yongjun and committed by
Linus Walleij
f85522c2 54e2602f

-10
-10
drivers/gpio/gpio-altera-a10sr.c
··· 110 110 return 0; 111 111 } 112 112 113 - static int altr_a10sr_gpio_remove(struct platform_device *pdev) 114 - { 115 - struct altr_a10sr_gpio *gpio = platform_get_drvdata(pdev); 116 - 117 - gpiochip_remove(&gpio->gp); 118 - 119 - return 0; 120 - } 121 - 122 113 static const struct of_device_id altr_a10sr_gpio_of_match[] = { 123 114 { .compatible = "altr,a10sr-gpio" }, 124 115 { }, ··· 118 127 119 128 static struct platform_driver altr_a10sr_gpio_driver = { 120 129 .probe = altr_a10sr_gpio_probe, 121 - .remove = altr_a10sr_gpio_remove, 122 130 .driver = { 123 131 .name = "altr_a10sr_gpio", 124 132 .of_match_table = of_match_ptr(altr_a10sr_gpio_of_match),