diff options
| author | Jon Smirl <jonsmirl@gmail.com> | 2008-07-14 16:38:35 -0400 |
|---|---|---|
| committer | Jean Delvare <khali@mahadeva.delvare> | 2008-07-14 16:38:35 -0400 |
| commit | e9ca9eb9d7fc7bf3dc3cec5ba7edb089c4625f7b (patch) | |
| tree | ac395c8362e862f9dd4892bc37031dfc9c1bf67e /drivers/i2c | |
| parent | f09f71b24e77a2f2b4e5c98311c8804fc61ad8bc (diff) | |
i2c: Export the i2c_bus_type symbol
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>
Diffstat (limited to 'drivers/i2c')
| -rw-r--r-- | drivers/i2c/i2c-core.c | 3 |
1 files changed, 2 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 | /** |
