Messages in this thread Patch in this message | | | From | Kuninori Morimoto <> | Subject | [PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync() | Date | Tue, 10 Nov 2015 02:12:34 +0000 |
| |
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
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@renesas.com> --- 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
| |