diff options
| author | Claudiu Beznea <[email protected]> | 2024-11-19 08:55:54 +0000 |
|---|---|---|
| committer | Philipp Zabel <[email protected]> | 2024-12-06 15:51:28 +0000 |
| commit | 1f8af9712413f456849fdf3f3a782cbe099476d7 (patch) | |
| tree | 68121bd2662378bf88a9cb63b0503ec20f4ac1e8 /drivers/gpu/drm/amd/display/modules/freesync/freesync.c | |
| parent | Linux 6.13-rc1 (diff) | |
| download | kernel-1f8af9712413f456849fdf3f3a782cbe099476d7.tar.gz kernel-1f8af9712413f456849fdf3f3a782cbe099476d7.zip | |
reset: rzg2l-usbphy-ctrl: Assign proper of node to the allocated device
The platform device named "rzg2l-usb-vbus-regulator", allocated by
the rzg2l-usbphy-ctrl driver, is used to instantiate a regulator driver.
This regulator driver is associated with a device tree (DT) node, which
is a child of the rzg2l-usbphy-ctrl DT node. The regulator's DT node allows
consumer nodes to reference the regulator and configure the regulator as
needed.
Starting with commit cd7a38c40b23 ("regulator: core: do not silently ignore
provided init_data") the struct regulator_dev::dev::of_node is no longer
populated using of_node_get(config->of_node) if the regulator does not
provide init_data. Since the rzg2l-usb-vbus-regulator does not provide
init_data, this behaviour causes the of_find_regulator_by_node() function
to fails, resulting in errors when attempting to request the regulator.
To fix this issue, call device_set_of_node_from_dev() for the
"rzg2l-usb-vbus-regulator" platform device.
Fixes: 84fbd6198766 ("regulator: Add Renesas RZ/G2L USB VBUS regulator driver")
Signed-off-by: Claudiu Beznea <[email protected]>
Reviewed-by: Biju Das <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/display/modules/freesync/freesync.c')
0 files changed, 0 insertions, 0 deletions
