|
@@ -1392,6 +1392,8 @@ static int exynos_tmu_probe(struct platform_device *pdev)
|
|
|
if (!IS_ERR(data->clk_sec))
|
|
if (!IS_ERR(data->clk_sec))
|
|
|
clk_unprepare(data->clk_sec);
|
|
clk_unprepare(data->clk_sec);
|
|
|
err_sensor:
|
|
err_sensor:
|
|
|
|
|
+ if (!IS_ERR_OR_NULL(data->regulator))
|
|
|
|
|
+ regulator_disable(data->regulator);
|
|
|
thermal_zone_of_sensor_unregister(&pdev->dev, data->tzd);
|
|
thermal_zone_of_sensor_unregister(&pdev->dev, data->tzd);
|
|
|
|
|
|
|
|
return ret;
|
|
return ret;
|