Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac71c702 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Eduardo Valentin
Browse files

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Acked-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 0b37a83a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -463,9 +463,9 @@ static int rcar_thermal_probe(struct platform_device *pdev)

error_unregister:
	rcar_thermal_for_each_priv(priv, common) {
		thermal_zone_device_unregister(priv->zone);
		if (rcar_has_irq_support(priv))
			rcar_thermal_irq_disable(priv);
		thermal_zone_device_unregister(priv->zone);
	}

	pm_runtime_put(dev);
@@ -481,9 +481,9 @@ static int rcar_thermal_remove(struct platform_device *pdev)
	struct rcar_thermal_priv *priv;

	rcar_thermal_for_each_priv(priv, common) {
		thermal_zone_device_unregister(priv->zone);
		if (rcar_has_irq_support(priv))
			rcar_thermal_irq_disable(priv);
		thermal_zone_device_unregister(priv->zone);
	}

	pm_runtime_put(dev);