power: sbs-battery: Use devm_power_supply_register
authorPhil Reid <preid@electromag.com.au>
Mon, 25 Jul 2016 02:42:59 +0000 (10:42 +0800)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Aug 2016 19:51:30 +0000 (21:51 +0200)
commit492ff9d8f5fa6ad44288050238b7961d457a239d
treedf979bc455dda22583c20d72d7d82d46d732ea89
parentd2cec82c28802da31596b395ad292cb8f132fd63
power: sbs-battery: Use devm_power_supply_register

Use devm_power_supply_register instead of power_supply_register.
Remove call to power_supply_unregister.

Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/sbs-battery.c