]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: add a helper to setup both the of_node and fwnode of a device
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 17 Jun 2021 12:29:04 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:44:01 +0000 (12:44 +0100)
commit1d9140cbb1e1878964aba6338d0aa50b69733393
tree1b520362bd6bddd83ad65c27afbaf19baa2f707d
parent2cc74dea9c1704c0cd77973d8304444d32650721
driver core: add a helper to setup both the of_node and fwnode of a device

[ Upstream commit acbf86295c3f7d7ecd1f9f29d77172f7aaf8ca68 ]

There are many places where both the fwnode_handle and the of_node of a
device need to be populated. Add a function which does both so that we
have consistency.

Suggested-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: a26cc2934331 ("drm/mipi-dsi: Set the fwnode for mipi_dsi_device")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/base/core.c
include/linux/device.h