提交 075eb571 编写于 作者: T Tony Lindgren 提交者: 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: NTony Lindgren <tony@atomide.com>
Reviewed-by: NMark Greer <mgreer@animalcreek.com>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册