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 <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
eb415571c7
commit
1a67843595
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user