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>
Sun, 4 Aug 2019 07:33:39 +0000 (09:33 +0200)
commitf1405059725a8cdac363f6dd98fad4479bab319d
tree20e805876779d5e7a4c8c58726a7404e57a0ffc4
parent253278f2b5062e05cae6d46fe08b849d9be32336
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