diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-11-05 15:47:37 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-11-05 15:47:37 +0100 |
commit | 18ded420f798bda9698239478446c4d4bd103586 (patch) | |
tree | a174c908c82b04e469f02db767bcaf4137399104 /include | |
parent | ab51604a660c40d3a78d900a055346ef8ad0f639 (diff) | |
parent | 73e6a47ec804fb354a068b71f2f819a6a457270e (diff) | |
download | barebox-18ded420f798bda9698239478446c4d4bd103586.tar.gz barebox-18ded420f798bda9698239478446c4d4bd103586.tar.xz |
Merge branch 'for-next/am335x'
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 29694a9020..7b93c58474 100644 --- a/include/of.h +++ b/include/of.h @@ -227,6 +227,8 @@ extern int of_platform_populate(struct device_node *root, const struct of_device_id *matches, struct device_d *parent); extern struct device_d *of_find_device_by_node(struct device_node *np); +extern struct device_d *of_device_enable_and_register(struct device_node *np); +extern struct device_d *of_device_enable_and_register_by_name(const char *name); struct cdev *of_parse_partition(struct cdev *cdev, struct device_node *node); int of_parse_partitions(struct cdev *cdev, struct device_node *node); @@ -582,6 +584,18 @@ static inline struct device_d *of_find_device_by_node(struct device_node *np) { return NULL; } + +static inline struct device_d *of_device_enable_and_register( + struct device_node *np) +{ + return NULL; +} + +static inline struct device_d *of_device_enable_and_register_by_name( + const char *name) +{ + return NULL; +} #endif #define for_each_node_by_name(dn, name) \ |