提交 ac71c702 编写于 作者: G Geert Uytterhoeven 提交者: Eduardo Valentin

thermal: rcar: Make error and remove paths symmetrical with init

Swap interrupt disable and thermal zone unregistration in the error and
remove paths, to make them more symmetrical with the initialization
path.
Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NEduardo Valentin <edubezval@gmail.com>
上级 0b37a83a
...@@ -463,9 +463,9 @@ static int rcar_thermal_probe(struct platform_device *pdev) ...@@ -463,9 +463,9 @@ static int rcar_thermal_probe(struct platform_device *pdev)
error_unregister: error_unregister:
rcar_thermal_for_each_priv(priv, common) { rcar_thermal_for_each_priv(priv, common) {
thermal_zone_device_unregister(priv->zone);
if (rcar_has_irq_support(priv)) if (rcar_has_irq_support(priv))
rcar_thermal_irq_disable(priv); rcar_thermal_irq_disable(priv);
thermal_zone_device_unregister(priv->zone);
} }
pm_runtime_put(dev); pm_runtime_put(dev);
...@@ -481,9 +481,9 @@ static int rcar_thermal_remove(struct platform_device *pdev) ...@@ -481,9 +481,9 @@ static int rcar_thermal_remove(struct platform_device *pdev)
struct rcar_thermal_priv *priv; struct rcar_thermal_priv *priv;
rcar_thermal_for_each_priv(priv, common) { rcar_thermal_for_each_priv(priv, common) {
thermal_zone_device_unregister(priv->zone);
if (rcar_has_irq_support(priv)) if (rcar_has_irq_support(priv))
rcar_thermal_irq_disable(priv); rcar_thermal_irq_disable(priv);
thermal_zone_device_unregister(priv->zone);
} }
pm_runtime_put(dev); pm_runtime_put(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册