summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-03-13 00:37:27 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2003-03-13 00:37:27 -0800
commita693405459827ef869c41467e9460afd174a396f (patch)
tree25702a892899828023a4d45eef71b5a2f067c4f8
parent500d525042b8b4f2df766c385380f8a8d5c4920e (diff)
driver core: Export the legacy_bus structure for drivers to use.
-rw-r--r--drivers/base/platform.c3
-rw-r--r--include/linux/device.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index de932ddea39b..b79c1d345192 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -9,7 +9,7 @@
#include <linux/module.h>
#include <linux/init.h>
-static struct device legacy_bus = {
+struct device legacy_bus = {
.name = "legacy bus",
.bus_id = "legacy",
};
@@ -75,5 +75,6 @@ int __init platform_bus_init(void)
return bus_register(&platform_bus_type);
}
+EXPORT_SYMBOL(legacy_bus);
EXPORT_SYMBOL(platform_device_register);
EXPORT_SYMBOL(platform_device_unregister);
diff --git a/include/linux/device.h b/include/linux/device.h
index e27039ec2222..908d6b708fb7 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -366,6 +366,7 @@ extern int platform_device_register(struct platform_device *);
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);