aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_platform.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-02-17 02:26:57 -0500
committerGrant Likely <grant.likely@secretlab.ca>2011-02-28 03:36:38 -0500
commit710ac54be44e0cc53f5bf29b03d12c8706e7077a (patch)
tree82b570917ae685b981f55df85f0eff48576db7cc /include/linux/of_platform.h
parentb826291c14c396e7aa5d84523aafac117f430902 (diff)
dt/powerpc: move of_bus_type infrastructure to ibmebus
arch/powerpc/kernel/ibmebus.c is the only remaining user of the of_bus_type support code for initializing the bus and registering drivers. All others have either been switched to the vanilla platform bus or already have their own infrastructure. This patch moves the functionality that ibmebus is using out of drivers/of/{platform,device}.c and into ibmebus.c where it is actually used. Also renames the moved symbols from of_platform_* to ibmebus_bus_* to reflect the actual usage. This patch is part of moving all of the of_platform_bus_type users over to the platform_bus_type. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r--include/linux/of_platform.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h
index a68716ad38ce..048949fa1d10 100644
--- a/include/linux/of_platform.h
+++ b/include/linux/of_platform.h
@@ -47,10 +47,6 @@ struct of_platform_driver
47#define to_of_platform_driver(drv) \ 47#define to_of_platform_driver(drv) \
48 container_of(drv,struct of_platform_driver, driver) 48 container_of(drv,struct of_platform_driver, driver)
49 49
50extern int of_register_driver(struct of_platform_driver *drv,
51 struct bus_type *bus);
52extern void of_unregister_driver(struct of_platform_driver *drv);
53
54/* Platform drivers register/unregister */ 50/* Platform drivers register/unregister */
55extern int of_register_platform_driver(struct of_platform_driver *drv); 51extern int of_register_platform_driver(struct of_platform_driver *drv);
56extern void of_unregister_platform_driver(struct of_platform_driver *drv); 52extern void of_unregister_platform_driver(struct of_platform_driver *drv);
@@ -60,8 +56,6 @@ extern struct platform_device *of_device_alloc(struct device_node *np,
60 struct device *parent); 56 struct device *parent);
61extern struct platform_device *of_find_device_by_node(struct device_node *np); 57extern struct platform_device *of_find_device_by_node(struct device_node *np);
62 58
63extern int of_bus_type_init(struct bus_type *bus, const char *name);
64
65#if !defined(CONFIG_SPARC) /* SPARC has its own device registration method */ 59#if !defined(CONFIG_SPARC) /* SPARC has its own device registration method */
66/* Platform devices and busses creation */ 60/* Platform devices and busses creation */
67extern struct platform_device *of_platform_device_create(struct device_node *np, 61extern struct platform_device *of_platform_device_create(struct device_node *np,