aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-10-24 10:49:13 -0400
committerLinus Walleij <linus.walleij@linaro.org>2016-10-25 07:58:42 -0400
commitf85522c207ce395fc9c1f6b80a47f211d00914b0 (patch)
tree8dd8cf351f7e70311bad205eb219818532704744 /drivers/gpio
parent54e2602f04ee1bcf02395ff2cbaaa81308b56710 (diff)
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-altera-a10sr.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/gpio/gpio-altera-a10sr.c b/drivers/gpio/gpio-altera-a10sr.c
index 8274f98e3bee..9e1a138fed53 100644
--- a/drivers/gpio/gpio-altera-a10sr.c
+++ b/drivers/gpio/gpio-altera-a10sr.c
@@ -110,15 +110,6 @@ static int altr_a10sr_gpio_probe(struct platform_device *pdev)
110 return 0; 110 return 0;
111} 111}
112 112
113static 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
122static const struct of_device_id altr_a10sr_gpio_of_match[] = { 113static const struct of_device_id altr_a10sr_gpio_of_match[] = {
123 { .compatible = "altr,a10sr-gpio" }, 114 { .compatible = "altr,a10sr-gpio" },
124 { }, 115 { },
@@ -127,7 +118,6 @@ MODULE_DEVICE_TABLE(of, altr_a10sr_gpio_of_match);
127 118
128static struct platform_driver altr_a10sr_gpio_driver = { 119static struct platform_driver altr_a10sr_gpio_driver = {
129 .probe = altr_a10sr_gpio_probe, 120 .probe = altr_a10sr_gpio_probe,
130 .remove = altr_a10sr_gpio_remove,
131 .driver = { 121 .driver = {
132 .name = "altr_a10sr_gpio", 122 .name = "altr_a10sr_gpio",
133 .of_match_table = of_match_ptr(altr_a10sr_gpio_of_match), 123 .of_match_table = of_match_ptr(altr_a10sr_gpio_of_match),