Thermal: dove_thermal: 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 <sachin.kamat@linaro.org> Cc: Andrew Lunn <andrew@lunn.ch> Acked-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Eduardo Valentin <eduardo.valentin@ti.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
This commit is contained in:
parent
2a456cfbdb
commit
aa50c4e49c
@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev)
|
|||||||
platform_get_drvdata(pdev);
|
platform_get_drvdata(pdev);
|
||||||
|
|
||||||
thermal_zone_device_unregister(dove_thermal);
|
thermal_zone_device_unregister(dove_thermal);
|
||||||
platform_set_drvdata(pdev, NULL);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user