mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 00:10:09 +00:00
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: d7bf353fd0
("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>
This commit is contained in:
parent
44fccac4ff
commit
075eb5719d
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue