From 6a9fa44e743ae26d94bbeda9d7a34148fa879181 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Mon, 14 Jul 2008 22:38:35 +0200 Subject: [PATCH] --- yaml --- r: 101320 b: refs/heads/master c: e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/i2c/i2c-core.c | 3 ++- trunk/include/linux/i2c.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index de7b6cfe3ce1..b209ad0456dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f09f71b24e77a2f2b4e5c98311c8804fc61ad8bc +refs/heads/master: e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b diff --git a/trunk/drivers/i2c/i2c-core.c b/trunk/drivers/i2c/i2c-core.c index d6cc58abf3ff..e45bb2838f42 100644 --- a/trunk/drivers/i2c/i2c-core.c +++ b/trunk/drivers/i2c/i2c-core.c @@ -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); /** diff --git a/trunk/include/linux/i2c.h b/trunk/include/linux/i2c.h index 839d0ea3dca3..50cbab4b62b0 100644 --- a/trunk/include/linux/i2c.h +++ b/trunk/include/linux/i2c.h @@ -35,6 +35,8 @@ #include /* for completion */ #include +extern struct bus_type i2c_bus_type; + /* --- General options ------------------------------------------------ */ struct i2c_msg;