Skip to content

Commit 3ee1f79

Browse files
Andrei Coardosdlezcano
authored andcommitted
thermal/drivers/k3_bandgap: 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@gmail.com> Reviewed-by: Alexandru Ardelean <alex@shruggie.ro> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20230810112344.3806-1-aboutphysycs@gmail.com
1 parent e51c521 commit 3ee1f79

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/thermal/k3_bandgap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ static int k3_bandgap_probe(struct platform_device *pdev)
225225
devm_thermal_add_hwmon_sysfs(dev, data[id].tzd);
226226
}
227227

228-
platform_set_drvdata(pdev, bgp);
229228

230229
return 0;
231230

0 commit comments

Comments
 (0)