slimbus: core: Set fwnode for a device when setting of_node
authorSaravana Kannan <saravanak@google.com>
Mon, 11 May 2020 15:13:33 +0000 (16:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:21:07 +0000 (16:21 +0200)
commitdbf4d13382be7b272417025f5f6687641eb7dd21
treee3420531c28e96b32cf67ad596a6bdfb05e1a99b
parente270df39f728fd47771613f1147b26a600d183e8
slimbus: core: Set fwnode for a device when setting of_node

When setting the of_node for a newly created device, also set the
fwnode. This allows fw_devlink feature to work for slimbus devices.

Also, remove some unnecessary NULL checks. The functions in question
already do NULL checks.

Signed-off-by: Saravana Kannan <saravanak@google.com>
[Srini: removed unnecessary NULL check from other patch]
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200511151334.362-2-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/slimbus/core.c