--- zzzz-none-000/linux-3.10.107/arch/x86/platform/olpc/olpc-xo1-sci.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/x86/platform/olpc/olpc-xo1-sci.c 2021-02-04 17:41:59.000000000 +0000 @@ -61,7 +61,7 @@ if (psy) { power_supply_changed(psy); - put_device(psy->dev); + power_supply_put(psy); } } @@ -71,7 +71,7 @@ if (psy) { power_supply_changed(psy); - put_device(psy->dev); + power_supply_put(psy); } }