ChangeSet 1.1113, 2003/03/13 16:37:27-08:00, greg@kroah.com driver core: Export the legacy_bus structure for drivers to use. drivers/base/platform.c | 3 ++- include/linux/device.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff -Nru a/drivers/base/platform.c b/drivers/base/platform.c --- a/drivers/base/platform.c Thu Mar 13 16:57:00 2003 +++ b/drivers/base/platform.c Thu Mar 13 16:57:00 2003 @@ -9,7 +9,7 @@ #include #include -static struct device legacy_bus = { +struct device legacy_bus = { .name = "legacy bus", .bus_id = "legacy", }; @@ -75,5 +75,6 @@ return bus_register(&platform_bus_type); } +EXPORT_SYMBOL(legacy_bus); EXPORT_SYMBOL(platform_device_register); EXPORT_SYMBOL(platform_device_unregister); diff -Nru a/include/linux/device.h b/include/linux/device.h --- a/include/linux/device.h Thu Mar 13 16:57:00 2003 +++ b/include/linux/device.h Thu Mar 13 16:57:00 2003 @@ -366,6 +366,7 @@ extern void platform_device_unregister(struct platform_device *); extern struct bus_type platform_bus_type; +extern struct device legacy_bus; /* drivers/base/power.c */ extern int device_suspend(u32 state, u32 level);