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>
if (psy) {
power_supply_changed(psy);
- put_device(&psy->dev);
+ power_supply_put(psy);
}
}
if (psy) {
power_supply_changed(psy);
- put_device(&psy->dev);
+ power_supply_put(psy);
}
}