[PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync()

From: Kuninori Morimoto
Date: Mon Nov 09 2015 - 21:12:54 EST


From: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

It is using pm_runtime_get_sync() on probe(). Let's use
pm_runtime_put_sync() instead of pm_runtime_put(). Otherwise thermal
sensor doesn't work after unbind/re-bind

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>
---
drivers/thermal/rcar_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index 13d01ed..f7cf2d7 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -373,7 +373,7 @@ static int rcar_thermal_remove(struct platform_device *pdev)
thermal_zone_device_unregister(priv->zone);
}

- pm_runtime_put(dev);
+ pm_runtime_put_sync(dev);
pm_runtime_disable(dev);

return 0;
--
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/