Skip to content

Commit 1e0fb11

Browse files
AngeloGioacchino Del Regnosre
authored andcommitted
power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator
The of_match shall correspond to the name of the regulator subnode, or the deprecated `regulator-compatible` property must be used: failing to do so, the regulator won't probe (and the driver will as well not probe). Since the devicetree binding for this driver is actually correct and wants DTs to use the "usb-otg-vbus-regulator" subnode name, fix this driver by aligning the `of_match` string to what the DT binding wants. Fixes: 0402e8e ("power: supply: mt6360_charger: add MT6360 charger support") Signed-off-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Chen-Yu Tsai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 452d895 commit 1e0fb11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/mt6360_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ static const struct regulator_ops mt6360_chg_otg_ops = {
588588
};
589589

590590
static const struct regulator_desc mt6360_otg_rdesc = {
591-
.of_match = "usb-otg-vbus",
591+
.of_match = "usb-otg-vbus-regulator",
592592
.name = "usb-otg-vbus",
593593
.ops = &mt6360_chg_otg_ops,
594594
.owner = THIS_MODULE,

0 commit comments

Comments
 (0)