]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
i2c: Export the i2c_bus_type symbol
authorJon Smirl <jonsmirl@gmail.com>
Mon, 14 Jul 2008 20:38:35 +0000 (22:38 +0200)
committerJean Delvare <khali@mahadeva.delvare>
Mon, 14 Jul 2008 20:38:35 +0000 (22:38 +0200)
Export the root of the i2c bus so that PowerPC device tree code can
iterate over devices on the i2c bus.

Signed-off-by: Jon Smirl <jonsmirl@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/i2c-core.c
include/linux/i2c.h

index d6cc58abf3ff0b648b4e188a1e0797549c1d1eb0..e45bb2838f421f9879bc71f0d54fa28e83089cec 100644 (file)
@@ -201,7 +201,7 @@ static struct device_attribute i2c_dev_attrs[] = {
        { },
 };
 
-static struct bus_type i2c_bus_type = {
+struct bus_type i2c_bus_type = {
        .name           = "i2c",
        .dev_attrs      = i2c_dev_attrs,
        .match          = i2c_device_match,
@@ -212,6 +212,7 @@ static struct bus_type i2c_bus_type = {
        .suspend        = i2c_device_suspend,
        .resume         = i2c_device_resume,
 };
+EXPORT_SYMBOL_GPL(i2c_bus_type);
 
 
 /**
index 839d0ea3dca36d6e6a0791ca864e1922351274b8..50cbab4b62b034cefee3fb7b8cac209e39b8e380 100644 (file)
@@ -35,6 +35,8 @@
 #include <linux/sched.h>       /* for completion */
 #include <linux/mutex.h>
 
+extern struct bus_type i2c_bus_type;
+
 /* --- General options ------------------------------------------------        */
 
 struct i2c_msg;