power: supply: mt6360_charger: Fix of_match for usb-otg-vbus regulator
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Wed, 10 Apr 2024 08:44:05 +0000 (10:44 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 15 Apr 2024 11:31:37 +0000 (13:31 +0200)
commit1e0fb113646182e073539db96016b00cfeb18ecc
tree6071cad0a0dcfafaea9ffc8bee67d626b36e6968
parent452d8950db3e839aba1bb13bc5378f4bac11fa04
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: 0402e8ebb8b8 ("power: supply: mt6360_charger: add MT6360 charger support")
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20240410084405.1389378-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/mt6360_charger.c