Commit 075eb571 authored by Tony Lindgren's avatar Tony Lindgren Committed by Sebastian Reichel

bq24190_charger: Fix PM runtime use for bq24190_battery_set_property

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

Fixes: d7bf353f ("bq24190_charger: Add support for TI BQ24190 Battery Charger")
Cc: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 44fccac4
...@@ -1141,7 +1141,7 @@ static int bq24190_battery_set_property(struct power_supply *psy, ...@@ -1141,7 +1141,7 @@ static int bq24190_battery_set_property(struct power_supply *psy,
dev_dbg(bdi->dev, "prop: %d\n", psp); dev_dbg(bdi->dev, "prop: %d\n", psp);
pm_runtime_put_sync(bdi->dev); pm_runtime_get_sync(bdi->dev);
switch (psp) { switch (psp) {
case POWER_SUPPLY_PROP_ONLINE: case POWER_SUPPLY_PROP_ONLINE:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment