Skip to contentSkip to conversation

thermal: rcar: Use pm_runtime_put() i.s.o. pm_runtime_put_sync()

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Apr 14, 2014 – May 15, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: rcar: Use pm_runtime_put() i.s.o. pm_runtime_put_sync()

From: Geert Uytterhoeven <[email protected]>

There's no need for this to be synchronous

---
 drivers/thermal/rcar_thermal.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/thermal/rcar_thermal.c +2 -2
index 5a37940b02c9..a8ed0e0265ae 100644
@@ -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;
Signature · 1 line
1.7.9.5
reviewer Applied
#1 lore raw
Quoted 5 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

There's no need for this to be synchronous

applied.

thanks,
rui

Quoted 26 lines
---
 drivers/thermal/rcar_thermal.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/thermal/rcar_thermal.c +2 -2
index 5a37940b02c9..a8ed0e0265ae 100644
@@ -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;