[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230809154211.15741-1-aboutphysycs@gmail.com>
Date: Wed, 9 Aug 2023 18:42:11 +0300
From: Andrei Coardos <aboutphysycs@...il.com>
To: linux-kernel@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-tegra@...r.kernel.org, ac100@...ts.launchpad.net
Cc: gregkh@...uxfoundation.org, marvin24@....de, alex@...uggie.ro,
Andrei Coardos <aboutphysycs@...il.com>
Subject: [PATCH] staging: nvec: paz00: remove unneeded call to platform_set_drvdata()
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@...il.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
Powered by blists - more mailing lists