diff options
| author | Saravana Kannan <[email protected]> | 2023-03-01 18:35:09 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-03-09 17:09:56 +0100 |
| commit | 1a5ecc73b2bfeffe036212d4a6bfacee053ab0a1 (patch) | |
| tree | 5e57394ca55444dd777190ea6df19aeeaa4d48ea | |
| parent | 1be6f2b15f902c02e055ae0b419ca789200473c9 (diff) | |
serdev: Set fwnode for serdev devices
This allow fw_devlink to do dependency tracking for serdev devices.
Reported-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/
Cc: Stefan Wahren <[email protected]>
Signed-off-by: Saravana Kannan <[email protected]>
Tested-by: Stefan Wahren <[email protected]>
Tested-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/tty/serdev/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serdev/core.c b/drivers/tty/serdev/core.c index aa80de3a8194..678014253b7b 100644 --- a/drivers/tty/serdev/core.c +++ b/drivers/tty/serdev/core.c @@ -534,7 +534,7 @@ static int of_serdev_register_devices(struct serdev_controller *ctrl) if (!serdev) continue; - serdev->dev.of_node = node; + device_set_node(&serdev->dev, of_fwnode_handle(node)); err = serdev_device_add(serdev); if (err) { |