diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2015-03-01 13:32:11 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-03-03 08:25:59 +0100 |
commit | 58e0e42d8e13f523f464f90b0d8415a51dbaf5be (patch) | |
tree | 39570a14e7481ec29c45247f664156404bd9f5a5 /include/of.h | |
parent | f6b8bb42ca776efcddfd84589efe6ab689e801dc (diff) | |
download | barebox-58e0e42d8e13f523f464f90b0d8415a51dbaf5be.tar.gz barebox-58e0e42d8e13f523f464f90b0d8415a51dbaf5be.tar.xz |
of: add no-op function for of_register_fixup()
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/of.h b/include/of.h index 5273f87ebd..fe5805c93b 100644 --- a/include/of.h +++ b/include/of.h @@ -61,7 +61,6 @@ struct device_d; struct driver_d; int of_fix_tree(struct device_node *); -int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context); int of_match(struct device_d *dev, struct driver_d *drv); @@ -240,6 +239,7 @@ void of_add_memory_bank(struct device_node *node, bool dump, int r, u64 base, u64 size); struct device_d *of_find_device_by_node_path(const char *path); int of_find_path(struct device_node *node, const char *propname, char **outpath); +int of_register_fixup(int (*fixup)(struct device_node *, void *), void *context); #else static inline int of_parse_partitions(struct cdev *cdev, struct device_node *node) @@ -596,6 +596,12 @@ static inline struct device_d *of_device_enable_and_register_by_name( { return NULL; } + +static inline int of_register_fixup(int (*fixup)(struct device_node *, void *), + void *context) +{ + return -ENOSYS; +} #endif #define for_each_node_by_name(dn, name) \ |