gpio: clps711x: drop unneeded platform_set_drvdata()
PATCH 1/1 gpio: clps711x: drop unneeded platform_set_drvdata()
From: Bartosz Golaszewski <[email protected]>
There's no corresponding platform_get_drvdata() used in this module or the higher-level gpio-mmio. Let's remove the unneeded call to platform_set_drvdata().
Signed-off-by Bartosz Golaszewski <[email protected]>
--- drivers/gpio/gpio-clps711x.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpio/gpio-clps711x.c +0 -1
@@ -62,7 +62,6 @@ static int clps711x_gpio_probe(struct platform_device *pdev) gc->base =-1 ; gc->owner =THIS_MODULE ; -platform_set_drvdata (pdev, gc);return devm_gpiochip_add_data (&pdev->dev, gc,NULL ); }
Signature · 1 line
2.48.1
Bartosz Golaszewski
AppliedFrom: Bartosz Golaszewski <[email protected]>
Quoted 5 lines · Bartosz Golaszewski
There's no corresponding
platform_get_drvdata()used in this module or the higher-level gpio-mmio. Let's remove the unneeded call toplatform_set_drvdata().
Applied, thanks!
[1/1] gpio: clps711x: drop unneeded platform_set_drvdata()
https://git.kernel.org/brgl/linux/c/23b33cf1244185d0432b25afdc04f2fe47a1cc2e
Best regards,
Signature · 1 line
Bartosz Golaszewski <[email protected]>