Skip to content

Commit 1c73c3b

Browse files
Andrei Coardosdlezcano
authored andcommitted
thermal/drivers/broadcom/sr-thermal: Removed 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/20230810111330.3248-1-aboutphysycs@gmail.com
1 parent 1892f9f commit 1c73c3b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/thermal/broadcom/sr-thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ static int sr_thermal_probe(struct platform_device *pdev)
9191

9292
dev_dbg(dev, "thermal sensor %d registered\n", i);
9393
}
94-
platform_set_drvdata(pdev, sr_thermal);
9594

9695
return 0;
9796
}

0 commit comments

Comments
 (0)