diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2010-06-08 17:48:14 +0400 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2010-07-06 02:14:29 +0400 |
commit | 94c0931983ee9d1cd96c32d52ac64c17464f0bbd (patch) | |
tree | 188c9d7ef9dfb560563078d6d2f3872291686f58 /include/linux | |
parent | 5fd200f3b351183b5489cef69961c60af9cead2f (diff) | |
download | linux-94c0931983ee9d1cd96c32d52ac64c17464f0bbd.tar.xz |
of: Merge of_device_alloc() and of_device_make_bus_id()
This patch merges the common routines of_device_alloc() and
of_device_make_bus_id() from powerpc and microblaze.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Michal Simek <monstr@monstr.eu>
CC: Grant Likely <grant.likely@secretlab.ca>
CC: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: Stephen Rothwell <sfr@canb.auug.org.au>
CC: microblaze-uclinux@itee.uq.edu.au
CC: linuxppc-dev@ozlabs.org
CC: devicetree-discuss@lists.ozlabs.org
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/of_platform.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index 4bbba41396ef..a51fd30176aa 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h @@ -60,6 +60,9 @@ static inline void of_unregister_platform_driver(struct of_platform_driver *drv) of_unregister_driver(drv); } +extern struct of_device *of_device_alloc(struct device_node *np, + const char *bus_id, + struct device *parent); #include <asm/of_platform.h> extern struct of_device *of_find_device_by_node(struct device_node *np); |