OSDN Git Service

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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Jun 2021 19:06:52 +0000 (12:06 -0700)
commit43e76d463c09a0272b84775bcc727c1eb8b384b2
treef179f60a05928c1f4acbec49a972075afde2ddb0
parent70ef608c224af39c7eee850d763b986954594de6
driver core: add a helper to setup both the of_node and fwnode of a device

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>
drivers/base/core.c
include/linux/device.h