From: Andrei Coardos Date: Wed, 19 Jul 2023 09:39:23 +0000 (+0300) Subject: gpio: exar: remove unneeded platform_set_drvdata() call X-Git-Tag: v6.6.17~4100^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba8a90e8cb8ca4db4e57be6b53aa8c364137b38c;p=platform%2Fkernel%2Flinux-rpi.git gpio: exar: remove unneeded platform_set_drvdata() call 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 Signed-off-by: Andrei Coardos Reviewed-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-exar.c b/drivers/gpio/gpio-exar.c index df1bdaa..5170fe7 100644 --- a/drivers/gpio/gpio-exar.c +++ b/drivers/gpio/gpio-exar.c @@ -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; }