From: Alexandru Ardelean Date: Wed, 12 Jul 2023 09:48:57 +0000 (+0300) Subject: gpio: 74xx-mmio: remove unneeded platform_set_drvdata() call X-Git-Tag: v6.6.7~2081^2~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28e6c5b86ac3756235b9a0ae6b1409f6ac33cd09;p=platform%2Fkernel%2Flinux-starfive.git gpio: 74xx-mmio: 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. Signed-off-by: Alexandru Ardelean Reviewed-by: Andy Shevchenko Reviewed-by: Linus Walleij Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-74xx-mmio.c b/drivers/gpio/gpio-74xx-mmio.c index 0464f1e..c7ac5a9 100644 --- a/drivers/gpio/gpio-74xx-mmio.c +++ b/drivers/gpio/gpio-74xx-mmio.c @@ -135,8 +135,6 @@ static int mmio_74xx_gpio_probe(struct platform_device *pdev) priv->gc.ngpio = MMIO_74XX_BIT_CNT(priv->flags); priv->gc.owner = THIS_MODULE; - platform_set_drvdata(pdev, priv); - return devm_gpiochip_add_data(&pdev->dev, &priv->gc, priv); }