mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Thermal: spear: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <[email protected]>
Cc: Vincenzo Frascino <[email protected]>
Acked-by: Eduardo Valentin <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Zhang Rui <[email protected]>
This commit is contained in:
parent
6135ba36f4
commit
a1cf1150f1
1 changed files with 0 additions and 1 deletions
|
|
@ -174,7 +174,6 @@ static int spear_thermal_exit(struct platform_device *pdev)
|
|||
struct spear_thermal_dev *stdev = spear_thermal->devdata;
|
||||
|
||||
thermal_zone_device_unregister(spear_thermal);
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
|
||||
/* Disable SPEAr Thermal Sensor */
|
||||
actual_mask = readl_relaxed(stdev->thermal_base);
|
||||
|
|
|
|||
Loading…
Reference in a new issue