* [PATCH] gpio: clps711x: drop unneeded platform_set_drvdata()
@ 2025-06-18 7:46 Bartosz Golaszewski
2025-06-25 7:54 ` Bartosz Golaszewski
0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2025-06-18 7:46 UTC (permalink / raw)
To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Bartosz Golaszewski
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
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 <bartosz.golaszewski@linaro.org>
---
drivers/gpio/gpio-clps711x.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpio/gpio-clps711x.c b/drivers/gpio/gpio-clps711x.c
index d69a24dd4828..c0c8d29d0dce 100644
--- a/drivers/gpio/gpio-clps711x.c
+++ b/drivers/gpio/gpio-clps711x.c
@@ -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);
}
--
2.48.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] gpio: clps711x: drop unneeded platform_set_drvdata()
2025-06-18 7:46 [PATCH] gpio: clps711x: drop unneeded platform_set_drvdata() Bartosz Golaszewski
@ 2025-06-25 7:54 ` Bartosz Golaszewski
0 siblings, 0 replies; 2+ messages in thread
From: Bartosz Golaszewski @ 2025-06-25 7:54 UTC (permalink / raw)
To: Linus Walleij, Bartosz Golaszewski
Cc: Bartosz Golaszewski, linux-gpio, linux-kernel
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
On Wed, 18 Jun 2025 09:46:53 +0200, Bartosz Golaszewski wrote:
> 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,
--
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-25 7:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-18 7:46 [PATCH] gpio: clps711x: drop unneeded platform_set_drvdata() Bartosz Golaszewski
2025-06-25 7:54 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®