aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-02-23 10:37:25 -0500
committerEduardo Valentin <edubezval@gmail.com>2015-02-24 13:58:05 -0500
commitac71c7025ebc1ed25114b1be77dc60b7f8cb8544 (patch)
tree2c6b27937a36d92ba3c71c5e4619f9a7ba0b3a9e /drivers/thermal
parent0b37a83a91e885250c68546ce7271ce722120c99 (diff)
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: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r--drivers/thermal/rcar_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 3c2c1720ba4a..fe4e767018c4 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -463,9 +463,9 @@ static int rcar_thermal_probe(struct platform_device *pdev)
463 463
464error_unregister: 464error_unregister:
465 rcar_thermal_for_each_priv(priv, common) { 465 rcar_thermal_for_each_priv(priv, common) {
466 thermal_zone_device_unregister(priv->zone);
467 if (rcar_has_irq_support(priv)) 466 if (rcar_has_irq_support(priv))
468 rcar_thermal_irq_disable(priv); 467 rcar_thermal_irq_disable(priv);
468 thermal_zone_device_unregister(priv->zone);
469 } 469 }
470 470
471 pm_runtime_put(dev); 471 pm_runtime_put(dev);
@@ -481,9 +481,9 @@ static int rcar_thermal_remove(struct platform_device *pdev)
481 struct rcar_thermal_priv *priv; 481 struct rcar_thermal_priv *priv;
482 482
483 rcar_thermal_for_each_priv(priv, common) { 483 rcar_thermal_for_each_priv(priv, common) {
484 thermal_zone_device_unregister(priv->zone);
485 if (rcar_has_irq_support(priv)) 484 if (rcar_has_irq_support(priv))
486 rcar_thermal_irq_disable(priv); 485 rcar_thermal_irq_disable(priv);
486 thermal_zone_device_unregister(priv->zone);
487 } 487 }
488 488
489 pm_runtime_put(dev); 489 pm_runtime_put(dev);