diff options
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index a5bff9ce7cbe..a6cf4e94f14c 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -97,10 +97,15 @@ static inline int omap1_i2c_add_bus(int bus_id) | |||
97 | { | 97 | { |
98 | struct platform_device *pdev; | 98 | struct platform_device *pdev; |
99 | struct omap_i2c_bus_platform_data *pdata; | 99 | struct omap_i2c_bus_platform_data *pdata; |
100 | struct resource *res; | ||
100 | 101 | ||
101 | omap1_i2c_mux_pins(bus_id); | 102 | omap1_i2c_mux_pins(bus_id); |
102 | 103 | ||
103 | pdev = &omap_i2c_devices[bus_id - 1]; | 104 | pdev = &omap_i2c_devices[bus_id - 1]; |
105 | res = pdev->resource; | ||
106 | res[0].start = OMAP1_I2C_BASE; | ||
107 | res[0].end = res[0].start + OMAP_I2C_SIZE; | ||
108 | res[1].start = INT_I2C; | ||
104 | pdata = &i2c_pdata[bus_id - 1]; | 109 | pdata = &i2c_pdata[bus_id - 1]; |
105 | 110 | ||
106 | return platform_device_register(pdev); | 111 | return platform_device_register(pdev); |