public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: nvec: paz00: remove unneeded call to platform_set_drvdata()
@ 2023-08-09 15:42 Andrei Coardos
  2023-08-10  4:59 ` Dan Carpenter
  2023-10-10 16:13 ` Thierry Reding
  0 siblings, 2 replies; 4+ messages in thread
From: Andrei Coardos @ 2023-08-09 15:42 UTC (permalink / raw)
  To: linux-kernel, linux-staging, linux-tegra, ac100
  Cc: gregkh, marvin24, alex, Andrei Coardos

This function call was found to be unnecessary as there is no equivalent
platform_get_drvdata() call to access the private data of the driver. Also,
the private data is defined in this driver, so there is no risk of it being
accessed outside of this driver file.

Signed-off-by: Andrei Coardos <aboutphysycs@gmail.com>
---
 drivers/staging/nvec/nvec_paz00.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/nvec/nvec_paz00.c b/drivers/staging/nvec/nvec_paz00.c
index 55d59840fca4..9c01c51f0ab5 100644
--- a/drivers/staging/nvec/nvec_paz00.c
+++ b/drivers/staging/nvec/nvec_paz00.c
@@ -53,8 +53,6 @@ static int nvec_paz00_probe(struct platform_device *pdev)
 	led->cdev.flags |= LED_CORE_SUSPENDRESUME;
 	led->nvec = nvec;
 
-	platform_set_drvdata(pdev, led);
-
 	ret = devm_led_classdev_register(&pdev->dev, &led->cdev);
 	if (ret < 0)
 		return ret;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-10 16:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-09 15:42 [PATCH] staging: nvec: paz00: remove unneeded call to platform_set_drvdata() Andrei Coardos
2023-08-10  4:59 ` Dan Carpenter
2023-08-20 20:47   ` Marc Dietrich
2023-10-10 16:13 ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox