mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
x86/olpc/xo15/sci: Use newly added power_supply_put API
Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Acked-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Acked-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
ed6dad5229
commit
67273a1b42
@ -83,7 +83,7 @@ static void battery_status_changed(void)
|
||||
|
||||
if (psy) {
|
||||
power_supply_changed(psy);
|
||||
put_device(&psy->dev);
|
||||
power_supply_put(psy);
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ static void ac_status_changed(void)
|
||||
|
||||
if (psy) {
|
||||
power_supply_changed(psy);
|
||||
put_device(&psy->dev);
|
||||
power_supply_put(psy);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user