提交 ed6dad52 编写于 作者: K Krzysztof Kozlowski 提交者: Sebastian Reichel

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: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: NPavel Machek <pavel@ucw.cz>
Reviewed-by: NBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Reviewed-by: NSebastian Reichel <sre@kernel.org>
Acked-by: NIngo Molnar <mingo@kernel.org>
Signed-off-by: NSebastian Reichel <sre@kernel.org>
上级 b43eb35a
...@@ -61,7 +61,7 @@ static void battery_status_changed(void) ...@@ -61,7 +61,7 @@ static void battery_status_changed(void)
if (psy) { if (psy) {
power_supply_changed(psy); power_supply_changed(psy);
put_device(&psy->dev); power_supply_put(psy);
} }
} }
...@@ -71,7 +71,7 @@ static void ac_status_changed(void) ...@@ -71,7 +71,7 @@ static void ac_status_changed(void)
if (psy) { if (psy) {
power_supply_changed(psy); power_supply_changed(psy);
put_device(&psy->dev); power_supply_put(psy);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册