gpio: exar: remove unneeded platform_set_drvdata() call
authorAndrei Coardos <aboutphysycs@gmail.com>
Wed, 19 Jul 2023 09:39:23 +0000 (12:39 +0300)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Sat, 29 Jul 2023 14:04:38 +0000 (16:04 +0200)
The platform_set_drvdata() was needed when the driver had an explicit
remove function.
That function got removed a while back, so we don't need to keep a pointer
(on 'dev->driver_data') for the private data of the driver anymore.

Reviewed-by: Alexandru Ardelean <alex@shruggie.ro>
Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpio-exar.c

index df1bdaa..5170fe7 100644 (file)
@@ -217,8 +217,6 @@ static int gpio_exar_probe(struct platform_device *pdev)
        if (ret)
                return ret;
 
-       platform_set_drvdata(pdev, exar_gpio);
-
        return 0;
 }