diff options
Diffstat (limited to 'drivers/of/of_i2c.c')
-rw-r--r-- | drivers/of/of_i2c.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c index 0a694debd226..f37fbeb66a44 100644 --- a/drivers/of/of_i2c.c +++ b/drivers/of/of_i2c.c | |||
@@ -12,6 +12,7 @@ | |||
12 | */ | 12 | */ |
13 | 13 | ||
14 | #include <linux/i2c.h> | 14 | #include <linux/i2c.h> |
15 | #include <linux/irq.h> | ||
15 | #include <linux/of.h> | 16 | #include <linux/of.h> |
16 | #include <linux/of_i2c.h> | 17 | #include <linux/of_i2c.h> |
17 | #include <linux/of_irq.h> | 18 | #include <linux/of_irq.h> |
@@ -60,7 +61,7 @@ void of_i2c_register_devices(struct i2c_adapter *adap) | |||
60 | info.of_node = of_node_get(node); | 61 | info.of_node = of_node_get(node); |
61 | info.archdata = &dev_ad; | 62 | info.archdata = &dev_ad; |
62 | 63 | ||
63 | request_module("%s", info.type); | 64 | request_module("%s%s", I2C_MODULE_PREFIX, info.type); |
64 | 65 | ||
65 | result = i2c_new_device(adap, &info); | 66 | result = i2c_new_device(adap, &info); |
66 | if (result == NULL) { | 67 | if (result == NULL) { |