summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Coardos <aboutphysycs@gmail.com>2023-08-10 14:20:15 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2023-08-16 13:18:02 +0300
commite51c521692362d7c32a28fbce21f88f703013a12 (patch)
treeb300574c632538d303b33e939b5508a9a869c311
parent1c73c3be9cc83ad1340897fe45adf1d11c418678 (diff)
downloadlinux-e51c521692362d7c32a28fbce21f88f703013a12.tar.xz
thermal/drivers/k3_j72xx_bandgap: Removed 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/20230810112015.3578-1-aboutphysycs@gmail.com
-rw-r--r--drivers/thermal/k3_j72xx_bandgap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/thermal/k3_j72xx_bandgap.c b/drivers/thermal/k3_j72xx_bandgap.c
index a5a0fc9b9356..2fc799b07b90 100644
--- a/drivers/thermal/k3_j72xx_bandgap.c
+++ b/drivers/thermal/k3_j72xx_bandgap.c
@@ -502,8 +502,6 @@ static int k3_j72xx_bandgap_probe(struct platform_device *pdev)
writel(K3_VTM_ANYMAXT_OUTRG_ALERT_EN, data[0].bgp->cfg2_base +
K3_VTM_MISC_CTRL_OFFSET);
- platform_set_drvdata(pdev, bgp);
-
print_look_up_table(dev, ref_table);
/*
* Now that the derived_table has the appropriate look up values