diff options
author | Marco Felsch <m.felsch@pengutronix.de> | 2021-06-25 09:25:24 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-06-25 10:01:00 +0200 |
commit | 46afd4bf8fa6c06e376ea47461ac51ee09871779 (patch) | |
tree | 2034fa9f544217acee797429ae9d0750c2ee619e /include | |
parent | dbc9dd22bc6ba3c36041f0c6280be2e0647184ed (diff) | |
download | barebox-46afd4bf8fa6c06e376ea47461ac51ee09871779.tar.gz barebox-46afd4bf8fa6c06e376ea47461ac51ee09871779.tar.xz |
of: platform: Keep track of populated platform devices
Linux does not allow to populate the same of device more than once.
Linux uses the OF_POPULATED flag for that purpose. Align the logic with
the current linux state with the exception that we are returning the
already created device. This is needed for the later added deep-probe
mechanism.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20201021115813.31645-4-m.felsch@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.barebox.org/20210625072540.32717-4-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index d67a40bd19..84d6e9b682 100644 --- a/include/of.h +++ b/include/of.h @@ -35,6 +35,7 @@ struct device_node { struct list_head parent_list; struct list_head list; phandle phandle; + struct device_d *dev; }; struct of_device_id { |