diff options
| author | David Lechner <[email protected]> | 2026-01-14 16:37:19 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-01-21 13:30:55 -0600 |
| commit | 04413ed0c1bde24bdb4a15e5d75a33f1f3fa8bfa (patch) | |
| tree | 39d125b92010089841d27b2c0eb8c9f0082f4288 /scripts/objdiff | |
| parent | c196b0a6882929bf0b6504eae963f24289ee5d85 (diff) | |
pinctrl: mediatek: fix failing to get syscon
Replace uclass_get_device_by_ofnode() with syscon_regmap_lookup_by_phandle()
to get the "mediatek,pctl-regmap" syscon device.
Depending on probe order, uclass_get_device_by_ofnode() may fail, but
syscon_regmap_lookup_by_phandle() has logic in it to handle that case
correctly.
The previous implementation could read more than one syscon if the
"mediatek,pctl-regmap" property had more than one phandle, but the one
board with a devicetree that does that is not supported in U-Boot yet,
so we can save that for later (it may never be needed).
Fixes: 424ceba18bfb ("pinctrl: mediatek: support mediatek,pctl-regmap property")
Signed-off-by: David Lechner <[email protected]>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
