linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] bq24190_charger: Fix PM runtime use for bq24190_battery_set_property
@ 2016-11-15  3:38 Tony Lindgren
  2016-11-15 17:29 ` Mark Greer
  2016-11-23 22:35 ` Sebastian Reichel
  0 siblings, 2 replies; 4+ messages in thread
From: Tony Lindgren @ 2016-11-15  3:38 UTC (permalink / raw)
  To: Sebastian Reichel; +Cc: Mark A . Greer, linux-pm, linux-omap

There's a typo, it should do pm_runtime_get_sync, not put.

Cc: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
---
 drivers/power/supply/bq24190_charger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
--- a/drivers/power/supply/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
@@ -1141,7 +1141,7 @@ static int bq24190_battery_set_property(struct power_supply *psy,
 
 	dev_dbg(bdi->dev, "prop: %d\n", psp);
 
-	pm_runtime_put_sync(bdi->dev);
+	pm_runtime_get_sync(bdi->dev);
 
 	switch (psp) {
 	case POWER_SUPPLY_PROP_ONLINE:
-- 
2.10.2

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-25 13:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15  3:38 [PATCH] bq24190_charger: Fix PM runtime use for bq24190_battery_set_property Tony Lindgren
2016-11-15 17:29 ` Mark Greer
2016-11-23 22:35 ` Sebastian Reichel
2016-11-25 13:34   ` Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).