x86/olpc/xo1/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
b43eb35abf
commit
ed6dad5229
|
@ -61,7 +61,7 @@ static void battery_status_changed(void)
|
|||
|
||||
if (psy) {
|
||||
power_supply_changed(psy);
|
||||
put_device(&psy->dev);
|
||||
power_supply_put(psy);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,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