mfd: core: Set fwnode for created devices
authorRobert Hancock <hancock@sedsystems.ca>
Tue, 4 Jun 2019 22:35:43 +0000 (16:35 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:27:03 +0000 (07:27 +0200)
commitd9c74176c275431894c301c6c3c093b81306eed8
tree4d884028d2432a8b26ccc7ef67ad4acf4cc15ebf
parent7b24a4a363a90d8708d6b59046843eddf3eee1a7
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>
drivers/mfd/mfd-core.c