Commit a6934054 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

driver core: Export the legacy_bus structure for drivers to use.

parent 500d5250
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
static struct device legacy_bus = { struct device legacy_bus = {
.name = "legacy bus", .name = "legacy bus",
.bus_id = "legacy", .bus_id = "legacy",
}; };
...@@ -75,5 +75,6 @@ int __init platform_bus_init(void) ...@@ -75,5 +75,6 @@ int __init platform_bus_init(void)
return bus_register(&platform_bus_type); return bus_register(&platform_bus_type);
} }
EXPORT_SYMBOL(legacy_bus);
EXPORT_SYMBOL(platform_device_register); EXPORT_SYMBOL(platform_device_register);
EXPORT_SYMBOL(platform_device_unregister); EXPORT_SYMBOL(platform_device_unregister);
...@@ -366,6 +366,7 @@ extern int platform_device_register(struct platform_device *); ...@@ -366,6 +366,7 @@ extern int platform_device_register(struct platform_device *);
extern void platform_device_unregister(struct platform_device *); extern void platform_device_unregister(struct platform_device *);
extern struct bus_type platform_bus_type; extern struct bus_type platform_bus_type;
extern struct device legacy_bus;
/* drivers/base/power.c */ /* drivers/base/power.c */
extern int device_suspend(u32 state, u32 level); extern int device_suspend(u32 state, u32 level);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment