summaryrefslogtreecommitdiffstats
path: root/include/of.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2021-11-15 14:21:20 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-15 14:21:20 +0100
commit0fdbd47ac4ff832f1c950db0b6ccb2eda3824158 (patch)
treeb6f121ca8017c89be96af2ff96d07f1f20e8f52c /include/of.h
parent42cdd1452a51ca970a6cda76e3bdbe4f04d6e13f (diff)
parenta1511452b8eb44cdce2e7e879b82d147e213654e (diff)
downloadbarebox-0fdbd47ac4ff832f1c950db0b6ccb2eda3824158.tar.gz
barebox-0fdbd47ac4ff832f1c950db0b6ccb2eda3824158.tar.xz
Merge branch 'for-next/rockchip'
Diffstat (limited to 'include/of.h')
-rw-r--r--include/of.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h
index f9c2b283de..1b7392cdb3 100644
--- a/include/of.h
+++ b/include/of.h
@@ -279,6 +279,7 @@ extern struct device_d *of_device_enable_and_register_by_name(const char *name);
extern struct device_d *of_device_enable_and_register_by_alias(
const char *alias);
+extern struct device_d *of_device_create_on_demand(struct device_node *np);
extern int of_device_ensure_probed(struct device_node *np);
extern int of_device_ensure_probed_by_alias(const char *alias);
extern int of_devices_ensure_probed_by_property(const char *property_name);
@@ -372,6 +373,11 @@ static inline void of_platform_device_dummy_drv(struct device_d *dev)
{
}
+static inline struct device_d *of_device_create_on_demand(struct device_node *np)
+{
+ return NULL;
+}
+
static inline int of_device_ensure_probed(struct device_node *np)
{
return 0;