mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2024-12-29 17:22:07 +00:00
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 <saravanak@google.com> Link: https://lore.kernel.org/r/20241115230509.1793191-1-saravanak@google.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
40384c840e
commit
a45e4aa263
@ -517,7 +517,7 @@ static void of_spmi_register_devices(struct spmi_controller *ctrl)
|
|||||||
if (!sdev)
|
if (!sdev)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
sdev->dev.of_node = node;
|
device_set_node(&sdev->dev, of_fwnode_handle(node));
|
||||||
sdev->usid = (u8)reg[0];
|
sdev->usid = (u8)reg[0];
|
||||||
|
|
||||||
err = spmi_device_add(sdev);
|
err = spmi_device_add(sdev);
|
||||||
|
Loading…
Reference in New Issue
Block a user