power: supply: ab8500: Call battery population once
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 22 May 2021 22:50:40 +0000 (00:50 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 3 Jun 2021 16:40:15 +0000 (18:40 +0200)
commit7e2bb83c617f8fccc04db7d03f105a06b9d491a9
treeb8f4413717794e299779682012651f4d22bf8972
parent1c1f13a006ed0d71bb5664c8b7e3e77a28da3beb
power: supply: ab8500: Call battery population once

The code was calling ab8500_bm_of_probe() in four different
spots effectively overwriting the same configuration three
times. This was done because probe order was uncertain.

Since we now used componentized probe, call it only once
while probing the main charging component.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_btemp.c
drivers/power/supply/ab8500_fg.c
drivers/power/supply/abx500_chargalg.c