Skip to content

Commit 83cf751

Browse files
robhancocksedgregkh
authored andcommitted
mfd: core: Set fwnode for created devices
[ Upstream commit c176c6d ] The logic for setting the of_node on devices created by mfd did not set the fwnode pointer to match, which caused fwnode-based APIs to malfunction on these devices since the fwnode pointer was null. Fix this. Signed-off-by: Robert Hancock <hancock@sedsystems.ca> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent efe18f7 commit 83cf751

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mfd/mfd-core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ static int mfd_add_device(struct device *parent, int id,
178178
for_each_child_of_node(parent->of_node, np) {
179179
if (of_device_is_compatible(np, cell->of_compatible)) {
180180
pdev->dev.of_node = np;
181+
pdev->dev.fwnode = &np->fwnode;
181182
break;
182183
}
183184
}

0 commit comments

Comments
 (0)