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 <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent ec6a519 commit 72449b3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)