Skip to content

Commit 72449b3

Browse files
Andrei Coardosdlezcano
authored andcommitted
thermal/drivers/max77620_thermal: 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/20230811191548.3340-1-aboutphysycs@gmail.com
1 parent ec6a519 commit 72449b3

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/thermal/max77620_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ static int max77620_thermal_probe(struct platform_device *pdev)
139139
return ret;
140140
}
141141

142-
platform_set_drvdata(pdev, mtherm);
143-
144142
return 0;
145143
}
146144

0 commit comments

Comments
 (0)