Skip to content

Commit

Permalink
Revert "power_supply: Fix unbalanced the power supplies"
Browse files Browse the repository at this point in the history
This reverts commit 3b27006aad84b5c4589a1200a0bb85d295bf38a3.
  • Loading branch information
psndna88 authored and 1petro committed Sep 24, 2020
1 parent 187df96 commit 216b401
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/power/power_supply_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ static int __power_supply_populate_supplied_from(struct device *dev,
if (np == epsy->of_node) {
dev_info(&psy->dev, "%s: Found supply : %s\n",
psy->desc->name, epsy->desc->name);
psy->supplied_from[psy->num_supplies++] =
(char *)epsy->desc->name;
psy->supplied_from[i-1] = (char *)epsy->desc->name;
psy->num_supplies++;
of_node_put(np);
break;
}
Expand Down

0 comments on commit 216b401

Please sign in to comment.