Commit 29f5c6e6 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Bartosz Golaszewski

gpio: msc313: Drop empty platform remove function

A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: default avatarRomain Perier <romain.perier@gmail.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 908334ab
...@@ -655,11 +655,6 @@ static int msc313_gpio_probe(struct platform_device *pdev) ...@@ -655,11 +655,6 @@ static int msc313_gpio_probe(struct platform_device *pdev)
return devm_gpiochip_add_data(dev, gpiochip, gpio); return devm_gpiochip_add_data(dev, gpiochip, gpio);
} }
static int msc313_gpio_remove(struct platform_device *pdev)
{
return 0;
}
static const struct of_device_id msc313_gpio_of_match[] = { static const struct of_device_id msc313_gpio_of_match[] = {
#ifdef CONFIG_MACH_INFINITY #ifdef CONFIG_MACH_INFINITY
{ {
...@@ -710,6 +705,5 @@ static struct platform_driver msc313_gpio_driver = { ...@@ -710,6 +705,5 @@ static struct platform_driver msc313_gpio_driver = {
.pm = &msc313_gpio_ops, .pm = &msc313_gpio_ops,
}, },
.probe = msc313_gpio_probe, .probe = msc313_gpio_probe,
.remove = msc313_gpio_remove,
}; };
builtin_platform_driver(msc313_gpio_driver); builtin_platform_driver(msc313_gpio_driver);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment