summaryrefslogtreecommitdiff
path: root/include/of.h
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-01-09 16:11:50 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-10 15:59:54 +0100
commit29b3c5b1b6cb4dc917f0f76adfd248a6314707fa (patch)
treecb92b8144a7efacbc1b74b6e0b74f1d2ee947701 /include/of.h
parented746b0ac1c9024dfee84e93096c866b872ba869 (diff)
downloadbarebox-29b3c5b1b6cb4dc917f0f76adfd248a6314707fa.tar.gz
of: provide of_node_get and of_node_put stubs
While removal of of_node_get and of_node_put can simplify ported kernel code, on the other hand, they can be more of a hassle with future syncs of the driver. Just provide stubs for them, so they can be left in. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230109151152.2052493-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index f22730c081..4f4e9248ad 100644
--- a/include/of.h
+++ b/include/of.h
@@ -101,6 +101,11 @@ static inline const void *of_property_get_value(const struct property *pp)
return pp->value ? pp->value : pp->value_const;
}
+static inline struct device_node *of_node_get(struct device_node *node)
+{
+ return node;
+}
+static inline void of_node_put(struct device_node *node) { }
void of_print_property(const void *data, int len);
void of_print_cmdline(struct device_node *root);