mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 09:33:31 +02:00
serial: core: Fix serial device initialization
During restoring sysfs fwnode information the information of_node_reused
was dropped. This was previously set by device_set_of_node_from_dev().
Add it back manually
Fixes: 24ec03cc55 ("serial: core: Restore sysfs fwnode information")
Cc: stable <stable@kernel.org>
Suggested-by: Cosmin Tanislav <demonsingur@gmail.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Tested-by: Michael Walle <mwalle@kernel.org>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Cosmin Tanislav <demonsingur@gmail.com>
Link: https://patch.msgid.link/20251219152813.1893982-1-alexander.stein@ew.tq-group.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5edb7338d6
commit
f54151148b
|
|
@ -74,6 +74,7 @@ static int serial_base_device_init(struct uart_port *port,
|
|||
dev->parent = parent_dev;
|
||||
dev->bus = &serial_base_bus_type;
|
||||
dev->release = release;
|
||||
dev->of_node_reused = true;
|
||||
|
||||
device_set_node(dev, fwnode_handle_get(dev_fwnode(parent_dev)));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user