power: supply: olpc_battery: Use devm_power_supply_register()
authorLubomir Rintel <lkundrak@v3.sk>
Thu, 18 Apr 2019 14:46:52 +0000 (16:46 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 18 Apr 2019 19:53:21 +0000 (21:53 +0200)
commitb0280d05804ae86514f5abca427e360e33fed1bb
treef915bb1498e3d06cf02b61217c83f7d02ce4cdc7
parent33554d818a9562f47ba0de3edb35346ccf7c8c1b
power: supply: olpc_battery: Use devm_power_supply_register()

This simplifies the error handling.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/olpc_battery.c