[PATCH 12/16] of: implement stub for of_cdev_find
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Apr 1 03:48:02 PDT 2025
For systems without CONFIG_OFTREE, provide a stub definition of
of_cdev_find, so code can compile without error.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
include/of.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/include/of.h b/include/of.h
index 985f0195b2aa..5829d9d1ace0 100644
--- a/include/of.h
+++ b/include/of.h
@@ -1007,6 +1007,11 @@ static inline struct device *of_device_enable_and_register_by_alias(
return NULL;
}
+static inline struct cdev *of_cdev_find(struct device_node *node)
+{
+ return ERR_PTR(-ENOSYS);
+}
+
static inline int of_register_fixup(int (*fixup)(struct device_node *, void *),
void *context)
{
--
2.39.5
More information about the barebox
mailing list