thermal: rcar: Use pm_runtime_put() i.s.o. pm_runtime_put_sync()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 14 Apr 2014 17:02:55 +0000 (19:02 +0200)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 08:47:39 +0000 (16:47 +0800)
There's no need for this to be synchronous

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/rcar_thermal.c

index 5a37940b02c99df447a0fc024177edccabd96635..a8ed0e0265ae6575c5c67c2011a5e1b28b259fa9 100644 (file)
@@ -470,7 +470,7 @@ error_unregister:
                        rcar_thermal_irq_disable(priv);
        }
 
-       pm_runtime_put_sync(dev);
+       pm_runtime_put(dev);
        pm_runtime_disable(dev);
 
        return ret;
@@ -488,7 +488,7 @@ static int rcar_thermal_remove(struct platform_device *pdev)
                        rcar_thermal_irq_disable(priv);
        }
 
-       pm_runtime_put_sync(dev);
+       pm_runtime_put(dev);
        pm_runtime_disable(dev);
 
        return 0;