Messages in this thread Patch in this message | | | Subject | Re: [PATCH] i2c driver changes for 2.5.64 | From | Greg KH <> | Date | Thu, 13 Mar 2003 16:55 -0800 |
| |
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 <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 @@ 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); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |