Skip to content

Commit bc32bbd

Browse files
Saravana Kannangregkh
authored andcommitted
spmi: Set fwnode for spmi devices
This allows fw_devlink to do proper dependency tracking for SPMI devices. So, better deferred probe handling, async probing, async suspend/resume, etc. Signed-off-by: Saravana Kannan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0e7d523 commit bc32bbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spmi/spmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
517517
if (!sdev)
518518
continue;
519519

520-
sdev->dev.of_node = node;
520+
device_set_node(&sdev->dev, of_fwnode_handle(node));
521521
sdev->usid = (u8)reg[0];
522522

523523
err = spmi_device_add(sdev);

0 commit comments

Comments
 (0)