Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: core: Set fwnode for created devices

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>

authored by

Robert Hancock and committed by
Lee Jones
c176c6d7 f88314c1

+1
+1
drivers/mfd/mfd-core.c
··· 179 179 for_each_child_of_node(parent->of_node, np) { 180 180 if (of_device_is_compatible(np, cell->of_compatible)) { 181 181 pdev->dev.of_node = np; 182 + pdev->dev.fwnode = &np->fwnode; 182 183 break; 183 184 } 184 185 }