diff options
author | Robert Hancock <hancock@sedsystems.ca> | 2019-06-04 16:35:43 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-31 07:27:03 +0200 |
commit | d9c74176c275431894c301c6c3c093b81306eed8 (patch) | |
tree | 4d884028d2432a8b26ccc7ef67ad4acf4cc15ebf /drivers/mfd | |
parent | 7b24a4a363a90d8708d6b59046843eddf3eee1a7 (diff) | |
download | linux-stable-d9c74176c275431894c301c6c3c093b81306eed8.tar.gz linux-stable-d9c74176c275431894c301c6c3c093b81306eed8.tar.bz2 linux-stable-d9c74176c275431894c301c6c3c093b81306eed8.zip |
mfd: core: Set fwnode for created devices
[ Upstream commit c176c6d7e932662668bcaec2d763657096589d85 ]
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>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/mfd-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c index 94e3f32ce935..182973df1aed 100644 --- a/drivers/mfd/mfd-core.c +++ b/drivers/mfd/mfd-core.c @@ -179,6 +179,7 @@ static int mfd_add_device(struct device *parent, int id, for_each_child_of_node(parent->of_node, np) { if (of_device_is_compatible(np, cell->of_compatible)) { pdev->dev.of_node = np; + pdev->dev.fwnode = &np->fwnode; break; } } |