From: Linus Walleij Date: Wed, 6 Oct 2021 22:40:07 +0000 (+0200) Subject: power: supply: ab8500_bmdata: Use standard phandle X-Git-Tag: v5.16-rc1~114^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1a6784359540dcfbf4fa73c07868b80c8405cc14;p=thirdparty%2Fkernel%2Flinux.git power: supply: ab8500_bmdata: Use standard phandle Look up the battery using the "monitored-battery" phandle as is nowadays a standard DT binding. The actual bindings for these charger elements are not upstream so let's sort out this mess by conforming to the standard. Signed-off-by: Linus Walleij Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/ab8500_bmdata.c b/drivers/power/supply/ab8500_bmdata.c index 6f5fb794042ce..bfc1245d79123 100644 --- a/drivers/power/supply/ab8500_bmdata.c +++ b/drivers/power/supply/ab8500_bmdata.c @@ -497,8 +497,7 @@ int ab8500_bm_of_probe(struct device *dev, const char *btech; int i; - /* get phandle to 'battery-info' node */ - battery_node = of_parse_phandle(np, "battery", 0); + battery_node = of_parse_phandle(np, "monitored-battery", 0); if (!battery_node) { dev_err(dev, "battery node or reference missing\n"); return -EINVAL;