bq24190_charger: Fix PM runtime use for bq24190_battery_set_property
authorTony Lindgren <tony@atomide.com>
Tue, 15 Nov 2016 03:38:31 +0000 (19:38 -0800)
committerSebastian Reichel <sre@kernel.org>
Wed, 23 Nov 2016 22:27:41 +0000 (23:27 +0100)
There's a typo, it should do pm_runtime_get_sync, not put.

Fixes: d7bf353fd0aa3 ("bq24190_charger: Add support for TI BQ24190 Battery Charger")
Cc: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/bq24190_charger.c

index f5746b9..e958433 100644 (file)
@@ -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: