diff options
-rw-r--r-- | drivers/i2c/i2c-core.c | 3 | ||||
-rw-r--r-- | include/linux/i2c.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c index d6cc58abf3ff..e45bb2838f42 100644 --- a/drivers/i2c/i2c-core.c +++ b/drivers/i2c/i2c-core.c | |||
@@ -201,7 +201,7 @@ static struct device_attribute i2c_dev_attrs[] = { | |||
201 | { }, | 201 | { }, |
202 | }; | 202 | }; |
203 | 203 | ||
204 | static struct bus_type i2c_bus_type = { | 204 | struct bus_type i2c_bus_type = { |
205 | .name = "i2c", | 205 | .name = "i2c", |
206 | .dev_attrs = i2c_dev_attrs, | 206 | .dev_attrs = i2c_dev_attrs, |
207 | .match = i2c_device_match, | 207 | .match = i2c_device_match, |
@@ -212,6 +212,7 @@ static struct bus_type i2c_bus_type = { | |||
212 | .suspend = i2c_device_suspend, | 212 | .suspend = i2c_device_suspend, |
213 | .resume = i2c_device_resume, | 213 | .resume = i2c_device_resume, |
214 | }; | 214 | }; |
215 | EXPORT_SYMBOL_GPL(i2c_bus_type); | ||
215 | 216 | ||
216 | 217 | ||
217 | /** | 218 | /** |
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 839d0ea3dca3..50cbab4b62b0 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -35,6 +35,8 @@ | |||
35 | #include <linux/sched.h> /* for completion */ | 35 | #include <linux/sched.h> /* for completion */ |
36 | #include <linux/mutex.h> | 36 | #include <linux/mutex.h> |
37 | 37 | ||
38 | extern struct bus_type i2c_bus_type; | ||
39 | |||
38 | /* --- General options ------------------------------------------------ */ | 40 | /* --- General options ------------------------------------------------ */ |
39 | 41 | ||
40 | struct i2c_msg; | 42 | struct i2c_msg; |