Skip to contentSkip to conversation

gpio: clps711x: drop unneeded platform_set_drvdata()

PATCH Applied Bartosz Golaszewski 1 participant 2 messages Jun 18, 2025 – Jun 25, 2025 GPIO

lore
Share & tools
lore
#0 lore raw

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().

---
 drivers/gpio/gpio-clps711x.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpio/gpio-clps711x.c +0 -1
index d69a24dd4828..c0c8d29d0dce 100644
@@ -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
author Applied
#1 lore raw

From: 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 to platform_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]>