diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-04-29 17:11:40 -0400 |
---|---|---|
committer | Jean Delvare <khali@hyperion.delvare> | 2008-04-29 17:11:40 -0400 |
commit | 3760f736716f74bdc62a4ba5406934338da93eb2 (patch) | |
tree | e28e22c6655dd62566f1b7a99f9354a31bf9d06e /arch | |
parent | d2653e92732bd3911feff6bee5e23dbf959381db (diff) |
i2c: Convert most new-style drivers to use module aliasing
Based on earlier work by Jon Smirl and Jochen Friedrich.
Update most new-style i2c drivers to use standard module aliasing
instead of the old driver_name/type driver matching scheme. I've
left the video drivers apart (except for SoC camera drivers) as
they're a bit more diffcult to deal with, they'll have their own
patch later.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Cc: Jon Smirl <jonsmirl@gmail.com>
Cc: Jochen Friedrich <jochen@scram.de>
Diffstat (limited to 'arch')
24 files changed, 31 insertions, 69 deletions
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c index 26fea4dcc3a..81f1ebb4e96 100644 --- a/arch/arm/mach-at91/board-csb337.c +++ b/arch/arm/mach-at91/board-csb337.c | |||
@@ -79,8 +79,7 @@ static struct at91_udc_data __initdata csb337_udc_data = { | |||
79 | 79 | ||
80 | static struct i2c_board_info __initdata csb337_i2c_devices[] = { | 80 | static struct i2c_board_info __initdata csb337_i2c_devices[] = { |
81 | { | 81 | { |
82 | I2C_BOARD_INFO("rtc-ds1307", 0x68), | 82 | I2C_BOARD_INFO("ds1307", 0x68), |
83 | .type = "ds1307", | ||
84 | }, | 83 | }, |
85 | }; | 84 | }; |
86 | 85 | ||
diff --git a/arch/arm/mach-at91/board-dk.c b/arch/arm/mach-at91/board-dk.c index 0a897efeba8..c1a813c7169 100644 --- a/arch/arm/mach-at91/board-dk.c +++ b/arch/arm/mach-at91/board-dk.c | |||
@@ -132,8 +132,7 @@ static struct i2c_board_info __initdata dk_i2c_devices[] = { | |||
132 | I2C_BOARD_INFO("x9429", 0x28), | 132 | I2C_BOARD_INFO("x9429", 0x28), |
133 | }, | 133 | }, |
134 | { | 134 | { |
135 | I2C_BOARD_INFO("at24c", 0x50), | 135 | I2C_BOARD_INFO("24c1024", 0x50), |
136 | .type = "24c1024", | ||
137 | } | 136 | } |
138 | }; | 137 | }; |
139 | 138 | ||
diff --git a/arch/arm/mach-at91/board-eb9200.c b/arch/arm/mach-at91/board-eb9200.c index b7b79bb9d6c..af1a1d8ecc3 100644 --- a/arch/arm/mach-at91/board-eb9200.c +++ b/arch/arm/mach-at91/board-eb9200.c | |||
@@ -93,8 +93,7 @@ static struct at91_mmc_data __initdata eb9200_mmc_data = { | |||
93 | 93 | ||
94 | static struct i2c_board_info __initdata eb9200_i2c_devices[] = { | 94 | static struct i2c_board_info __initdata eb9200_i2c_devices[] = { |
95 | { | 95 | { |
96 | I2C_BOARD_INFO("at24c", 0x50), | 96 | I2C_BOARD_INFO("24c512", 0x50), |
97 | .type = "24c512", | ||
98 | }, | 97 | }, |
99 | }; | 98 | }; |
100 | 99 | ||
diff --git a/arch/arm/mach-iop32x/em7210.c b/arch/arm/mach-iop32x/em7210.c index c947152f9a3..4877597c875 100644 --- a/arch/arm/mach-iop32x/em7210.c +++ b/arch/arm/mach-iop32x/em7210.c | |||
@@ -50,8 +50,7 @@ static struct sys_timer em7210_timer = { | |||
50 | */ | 50 | */ |
51 | static struct i2c_board_info __initdata em7210_i2c_devices[] = { | 51 | static struct i2c_board_info __initdata em7210_i2c_devices[] = { |
52 | { | 52 | { |
53 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 53 | I2C_BOARD_INFO("rs5c372a", 0x32), |
54 | .type = "rs5c372a", | ||
55 | }, | 54 | }, |
56 | }; | 55 | }; |
57 | 56 | ||
diff --git a/arch/arm/mach-iop32x/glantank.c b/arch/arm/mach-iop32x/glantank.c index d2a7b04f1cb..d4fca75ce54 100644 --- a/arch/arm/mach-iop32x/glantank.c +++ b/arch/arm/mach-iop32x/glantank.c | |||
@@ -176,12 +176,10 @@ static struct f75375s_platform_data glantank_f75375s = { | |||
176 | 176 | ||
177 | static struct i2c_board_info __initdata glantank_i2c_devices[] = { | 177 | static struct i2c_board_info __initdata glantank_i2c_devices[] = { |
178 | { | 178 | { |
179 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 179 | I2C_BOARD_INFO("rs5c372a", 0x32), |
180 | .type = "rs5c372a", | ||
181 | }, | 180 | }, |
182 | { | 181 | { |
183 | I2C_BOARD_INFO("f75375", 0x2e), | 182 | I2C_BOARD_INFO("f75375", 0x2e), |
184 | .type = "f75375", | ||
185 | .platform_data = &glantank_f75375s, | 183 | .platform_data = &glantank_f75375s, |
186 | }, | 184 | }, |
187 | }; | 185 | }; |
diff --git a/arch/arm/mach-iop32x/n2100.c b/arch/arm/mach-iop32x/n2100.c index bc91d6e66bc..2741063bf36 100644 --- a/arch/arm/mach-iop32x/n2100.c +++ b/arch/arm/mach-iop32x/n2100.c | |||
@@ -208,12 +208,10 @@ static struct f75375s_platform_data n2100_f75375s = { | |||
208 | 208 | ||
209 | static struct i2c_board_info __initdata n2100_i2c_devices[] = { | 209 | static struct i2c_board_info __initdata n2100_i2c_devices[] = { |
210 | { | 210 | { |
211 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 211 | I2C_BOARD_INFO("rs5c372b", 0x32), |
212 | .type = "rs5c372b", | ||
213 | }, | 212 | }, |
214 | { | 213 | { |
215 | I2C_BOARD_INFO("f75375", 0x2e), | 214 | I2C_BOARD_INFO("f75375", 0x2e), |
216 | .type = "f75375", | ||
217 | .platform_data = &n2100_f75375s, | 215 | .platform_data = &n2100_f75375s, |
218 | }, | 216 | }, |
219 | }; | 217 | }; |
diff --git a/arch/arm/mach-ixp4xx/dsmg600-setup.c b/arch/arm/mach-ixp4xx/dsmg600-setup.c index 8cb07437a80..a51bfa6978b 100644 --- a/arch/arm/mach-ixp4xx/dsmg600-setup.c +++ b/arch/arm/mach-ixp4xx/dsmg600-setup.c | |||
@@ -65,7 +65,7 @@ static struct platform_device dsmg600_i2c_gpio = { | |||
65 | 65 | ||
66 | static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = { | 66 | static struct i2c_board_info __initdata dsmg600_i2c_board_info [] = { |
67 | { | 67 | { |
68 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 68 | I2C_BOARD_INFO("pcf8563", 0x51), |
69 | }, | 69 | }, |
70 | }; | 70 | }; |
71 | 71 | ||
diff --git a/arch/arm/mach-ixp4xx/nas100d-setup.c b/arch/arm/mach-ixp4xx/nas100d-setup.c index 159e1c4f1ed..84b5e62a9c0 100644 --- a/arch/arm/mach-ixp4xx/nas100d-setup.c +++ b/arch/arm/mach-ixp4xx/nas100d-setup.c | |||
@@ -54,7 +54,7 @@ static struct platform_device nas100d_flash = { | |||
54 | 54 | ||
55 | static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { | 55 | static struct i2c_board_info __initdata nas100d_i2c_board_info [] = { |
56 | { | 56 | { |
57 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 57 | I2C_BOARD_INFO("pcf8563", 0x51), |
58 | }, | 58 | }, |
59 | }; | 59 | }; |
60 | 60 | ||
diff --git a/arch/arm/mach-ixp4xx/nslu2-setup.c b/arch/arm/mach-ixp4xx/nslu2-setup.c index d9a182895a0..a48a6655b88 100644 --- a/arch/arm/mach-ixp4xx/nslu2-setup.c +++ b/arch/arm/mach-ixp4xx/nslu2-setup.c | |||
@@ -57,7 +57,7 @@ static struct i2c_gpio_platform_data nslu2_i2c_gpio_data = { | |||
57 | 57 | ||
58 | static struct i2c_board_info __initdata nslu2_i2c_board_info [] = { | 58 | static struct i2c_board_info __initdata nslu2_i2c_board_info [] = { |
59 | { | 59 | { |
60 | I2C_BOARD_INFO("rtc-x1205", 0x6f), | 60 | I2C_BOARD_INFO("x1205", 0x6f), |
61 | }, | 61 | }, |
62 | }; | 62 | }; |
63 | 63 | ||
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 50798772001..4b444fdaafe 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -351,11 +351,9 @@ static void __init h2_init_smc91x(void) | |||
351 | static struct i2c_board_info __initdata h2_i2c_board_info[] = { | 351 | static struct i2c_board_info __initdata h2_i2c_board_info[] = { |
352 | { | 352 | { |
353 | I2C_BOARD_INFO("tps65010", 0x48), | 353 | I2C_BOARD_INFO("tps65010", 0x48), |
354 | .type = "tps65010", | ||
355 | .irq = OMAP_GPIO_IRQ(58), | 354 | .irq = OMAP_GPIO_IRQ(58), |
356 | }, { | 355 | }, { |
357 | I2C_BOARD_INFO("isp1301_omap", 0x2d), | 356 | I2C_BOARD_INFO("isp1301_omap", 0x2d), |
358 | .type = "isp1301_omap", | ||
359 | .irq = OMAP_GPIO_IRQ(2), | 357 | .irq = OMAP_GPIO_IRQ(2), |
360 | }, | 358 | }, |
361 | }; | 359 | }; |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index c3ef1ee5f77..7fbaa8d648c 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -473,8 +473,7 @@ static struct omap_board_config_kernel h3_config[] __initdata = { | |||
473 | 473 | ||
474 | static struct i2c_board_info __initdata h3_i2c_board_info[] = { | 474 | static struct i2c_board_info __initdata h3_i2c_board_info[] = { |
475 | { | 475 | { |
476 | I2C_BOARD_INFO("tps65010", 0x48), | 476 | I2C_BOARD_INFO("tps65013", 0x48), |
477 | .type = "tps65013", | ||
478 | /* .irq = OMAP_GPIO_IRQ(??), */ | 477 | /* .irq = OMAP_GPIO_IRQ(??), */ |
479 | }, | 478 | }, |
480 | }; | 479 | }; |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 4f9baba7d89..a66505f58b1 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -254,7 +254,6 @@ static struct tps65010_board tps_board = { | |||
254 | static struct i2c_board_info __initdata osk_i2c_board_info[] = { | 254 | static struct i2c_board_info __initdata osk_i2c_board_info[] = { |
255 | { | 255 | { |
256 | I2C_BOARD_INFO("tps65010", 0x48), | 256 | I2C_BOARD_INFO("tps65010", 0x48), |
257 | .type = "tps65010", | ||
258 | .irq = OMAP_GPIO_IRQ(OMAP_MPUIO(1)), | 257 | .irq = OMAP_GPIO_IRQ(OMAP_MPUIO(1)), |
259 | .platform_data = &tps_board, | 258 | .platform_data = &tps_board, |
260 | 259 | ||
diff --git a/arch/arm/mach-orion5x/db88f5281-setup.c b/arch/arm/mach-orion5x/db88f5281-setup.c index 872aed37232..ea3141e3e3c 100644 --- a/arch/arm/mach-orion5x/db88f5281-setup.c +++ b/arch/arm/mach-orion5x/db88f5281-setup.c | |||
@@ -292,9 +292,7 @@ static struct mv643xx_eth_platform_data db88f5281_eth_data = { | |||
292 | * RTC DS1339 on I2C bus | 292 | * RTC DS1339 on I2C bus |
293 | ****************************************************************************/ | 293 | ****************************************************************************/ |
294 | static struct i2c_board_info __initdata db88f5281_i2c_rtc = { | 294 | static struct i2c_board_info __initdata db88f5281_i2c_rtc = { |
295 | .driver_name = "rtc-ds1307", | 295 | I2C_BOARD_INFO("ds1339", 0x68), |
296 | .type = "ds1339", | ||
297 | .addr = 0x68, | ||
298 | }; | 296 | }; |
299 | 297 | ||
300 | /***************************************************************************** | 298 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/dns323-setup.c b/arch/arm/mach-orion5x/dns323-setup.c index d67790ef236..058a525c2ab 100644 --- a/arch/arm/mach-orion5x/dns323-setup.c +++ b/arch/arm/mach-orion5x/dns323-setup.c | |||
@@ -220,19 +220,16 @@ static struct platform_device *dns323_plat_devices[] __initdata = { | |||
220 | static struct i2c_board_info __initdata dns323_i2c_devices[] = { | 220 | static struct i2c_board_info __initdata dns323_i2c_devices[] = { |
221 | { | 221 | { |
222 | I2C_BOARD_INFO("g760a", 0x3e), | 222 | I2C_BOARD_INFO("g760a", 0x3e), |
223 | .type = "g760a", | ||
224 | }, | 223 | }, |
225 | #if 0 | 224 | #if 0 |
226 | /* this entry requires the new-style driver model lm75 driver, | 225 | /* this entry requires the new-style driver model lm75 driver, |
227 | * for the meantime "insmod lm75.ko force_lm75=0,0x48" is needed */ | 226 | * for the meantime "insmod lm75.ko force_lm75=0,0x48" is needed */ |
228 | { | 227 | { |
229 | I2C_BOARD_INFO("lm75", 0x48), | 228 | I2C_BOARD_INFO("g751", 0x48), |
230 | .type = "g751", | ||
231 | }, | 229 | }, |
232 | #endif | 230 | #endif |
233 | { | 231 | { |
234 | I2C_BOARD_INFO("rtc-m41t80", 0x68), | 232 | I2C_BOARD_INFO("m41t80", 0x68), |
235 | .type = "m41t80", | ||
236 | } | 233 | } |
237 | }; | 234 | }; |
238 | 235 | ||
diff --git a/arch/arm/mach-orion5x/kurobox_pro-setup.c b/arch/arm/mach-orion5x/kurobox_pro-setup.c index 91413455beb..707db4be74a 100644 --- a/arch/arm/mach-orion5x/kurobox_pro-setup.c +++ b/arch/arm/mach-orion5x/kurobox_pro-setup.c | |||
@@ -162,9 +162,7 @@ static struct mv643xx_eth_platform_data kurobox_pro_eth_data = { | |||
162 | * RTC 5C372a on I2C bus | 162 | * RTC 5C372a on I2C bus |
163 | ****************************************************************************/ | 163 | ****************************************************************************/ |
164 | static struct i2c_board_info __initdata kurobox_pro_i2c_rtc = { | 164 | static struct i2c_board_info __initdata kurobox_pro_i2c_rtc = { |
165 | .driver_name = "rtc-rs5c372", | 165 | I2C_BOARD_INFO("rs5c372a", 0x32), |
166 | .type = "rs5c372a", | ||
167 | .addr = 0x32, | ||
168 | }; | 166 | }; |
169 | 167 | ||
170 | /***************************************************************************** | 168 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/rd88f5182-setup.c b/arch/arm/mach-orion5x/rd88f5182-setup.c index 37e8b2dc3ed..7082fe8f83b 100644 --- a/arch/arm/mach-orion5x/rd88f5182-setup.c +++ b/arch/arm/mach-orion5x/rd88f5182-setup.c | |||
@@ -224,9 +224,7 @@ static struct mv643xx_eth_platform_data rd88f5182_eth_data = { | |||
224 | * RTC DS1338 on I2C bus | 224 | * RTC DS1338 on I2C bus |
225 | ****************************************************************************/ | 225 | ****************************************************************************/ |
226 | static struct i2c_board_info __initdata rd88f5182_i2c_rtc = { | 226 | static struct i2c_board_info __initdata rd88f5182_i2c_rtc = { |
227 | .driver_name = "rtc-ds1307", | 227 | I2C_BOARD_INFO("ds1338", 0x68), |
228 | .type = "ds1338", | ||
229 | .addr = 0x68, | ||
230 | }; | 228 | }; |
231 | 229 | ||
232 | /***************************************************************************** | 230 | /***************************************************************************** |
diff --git a/arch/arm/mach-orion5x/ts209-setup.c b/arch/arm/mach-orion5x/ts209-setup.c index fd43863a86f..6f93668b0ed 100644 --- a/arch/arm/mach-orion5x/ts209-setup.c +++ b/arch/arm/mach-orion5x/ts209-setup.c | |||
@@ -276,8 +276,7 @@ static void __init ts209_find_mac_addr(void) | |||
276 | #define TS209_RTC_GPIO 3 | 276 | #define TS209_RTC_GPIO 3 |
277 | 277 | ||
278 | static struct i2c_board_info __initdata qnap_ts209_i2c_rtc = { | 278 | static struct i2c_board_info __initdata qnap_ts209_i2c_rtc = { |
279 | .driver_name = "rtc-s35390a", | 279 | I2C_BOARD_INFO("s35390a", 0x30), |
280 | .addr = 0x30, | ||
281 | .irq = 0, | 280 | .irq = 0, |
282 | }; | 281 | }; |
283 | 282 | ||
diff --git a/arch/arm/mach-pxa/pcm990-baseboard.c b/arch/arm/mach-pxa/pcm990-baseboard.c index e6be9d0aecc..49d951db0f3 100644 --- a/arch/arm/mach-pxa/pcm990-baseboard.c +++ b/arch/arm/mach-pxa/pcm990-baseboard.c | |||
@@ -320,16 +320,13 @@ static struct soc_camera_link iclink[] = { | |||
320 | static struct i2c_board_info __initdata pcm990_i2c_devices[] = { | 320 | static struct i2c_board_info __initdata pcm990_i2c_devices[] = { |
321 | { | 321 | { |
322 | /* Must initialize before the camera(s) */ | 322 | /* Must initialize before the camera(s) */ |
323 | I2C_BOARD_INFO("pca953x", 0x41), | 323 | I2C_BOARD_INFO("pca9536", 0x41), |
324 | .type = "pca9536", | ||
325 | .platform_data = &pca9536_data, | 324 | .platform_data = &pca9536_data, |
326 | }, { | 325 | }, { |
327 | I2C_BOARD_INFO("mt9v022", 0x48), | 326 | I2C_BOARD_INFO("mt9v022", 0x48), |
328 | .type = "mt9v022", | ||
329 | .platform_data = &iclink[0], /* With extender */ | 327 | .platform_data = &iclink[0], /* With extender */ |
330 | }, { | 328 | }, { |
331 | I2C_BOARD_INFO("mt9m001", 0x5d), | 329 | I2C_BOARD_INFO("mt9m001", 0x5d), |
332 | .type = "mt9m001", | ||
333 | .platform_data = &iclink[0], /* With extender */ | 330 | .platform_data = &iclink[0], /* With extender */ |
334 | }, | 331 | }, |
335 | }; | 332 | }; |
diff --git a/arch/blackfin/mach-bf533/boards/stamp.c b/arch/blackfin/mach-bf533/boards/stamp.c index fddce32901a..024f418ae54 100644 --- a/arch/blackfin/mach-bf533/boards/stamp.c +++ b/arch/blackfin/mach-bf533/boards/stamp.c | |||
@@ -499,20 +499,17 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
499 | #if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE) | 499 | #if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE) |
500 | { | 500 | { |
501 | I2C_BOARD_INFO("ad7142_joystick", 0x2C), | 501 | I2C_BOARD_INFO("ad7142_joystick", 0x2C), |
502 | .type = "ad7142_joystick", | ||
503 | .irq = 39, | 502 | .irq = 39, |
504 | }, | 503 | }, |
505 | #endif | 504 | #endif |
506 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) | 505 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) |
507 | { | 506 | { |
508 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | 507 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), |
509 | .type = "pcf8574_lcd", | ||
510 | }, | 508 | }, |
511 | #endif | 509 | #endif |
512 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) | 510 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) |
513 | { | 511 | { |
514 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), | 512 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), |
515 | .type = "pcf8574_keypad", | ||
516 | .irq = 39, | 513 | .irq = 39, |
517 | }, | 514 | }, |
518 | #endif | 515 | #endif |
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 0cec14b1ef5..d3727b7c2d7 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -751,20 +751,17 @@ static struct i2c_board_info __initdata bfin_i2c_board_info[] = { | |||
751 | #if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE) | 751 | #if defined(CONFIG_JOYSTICK_AD7142) || defined(CONFIG_JOYSTICK_AD7142_MODULE) |
752 | { | 752 | { |
753 | I2C_BOARD_INFO("ad7142_joystick", 0x2C), | 753 | I2C_BOARD_INFO("ad7142_joystick", 0x2C), |
754 | .type = "ad7142_joystick", | ||
755 | .irq = 55, | 754 | .irq = 55, |
756 | }, | 755 | }, |
757 | #endif | 756 | #endif |
758 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) | 757 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) |
759 | { | 758 | { |
760 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | 759 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), |
761 | .type = "pcf8574_lcd", | ||
762 | }, | 760 | }, |
763 | #endif | 761 | #endif |
764 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) | 762 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) |
765 | { | 763 | { |
766 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), | 764 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), |
767 | .type = "pcf8574_keypad", | ||
768 | .irq = 72, | 765 | .irq = 72, |
769 | }, | 766 | }, |
770 | #endif | 767 | #endif |
diff --git a/arch/blackfin/mach-bf548/boards/ezkit.c b/arch/blackfin/mach-bf548/boards/ezkit.c index 231dfbd3bc1..b00f68ac6bc 100644 --- a/arch/blackfin/mach-bf548/boards/ezkit.c +++ b/arch/blackfin/mach-bf548/boards/ezkit.c | |||
@@ -641,13 +641,11 @@ static struct i2c_board_info __initdata bfin_i2c_board_info1[] = { | |||
641 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) | 641 | #if defined(CONFIG_TWI_LCD) || defined(CONFIG_TWI_LCD_MODULE) |
642 | { | 642 | { |
643 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), | 643 | I2C_BOARD_INFO("pcf8574_lcd", 0x22), |
644 | .type = "pcf8574_lcd", | ||
645 | }, | 644 | }, |
646 | #endif | 645 | #endif |
647 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) | 646 | #if defined(CONFIG_TWI_KEYPAD) || defined(CONFIG_TWI_KEYPAD_MODULE) |
648 | { | 647 | { |
649 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), | 648 | I2C_BOARD_INFO("pcf8574_keypad", 0x27), |
650 | .type = "pcf8574_keypad", | ||
651 | .irq = 212, | 649 | .irq = 212, |
652 | }, | 650 | }, |
653 | #endif | 651 | #endif |
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 7b45670c7af..324c01b70dd 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c | |||
@@ -418,22 +418,21 @@ arch_initcall(gfar_of_init); | |||
418 | #include <linux/i2c.h> | 418 | #include <linux/i2c.h> |
419 | struct i2c_driver_device { | 419 | struct i2c_driver_device { |
420 | char *of_device; | 420 | char *of_device; |
421 | char *i2c_driver; | ||
422 | char *i2c_type; | 421 | char *i2c_type; |
423 | }; | 422 | }; |
424 | 423 | ||
425 | static struct i2c_driver_device i2c_devices[] __initdata = { | 424 | static struct i2c_driver_device i2c_devices[] __initdata = { |
426 | {"ricoh,rs5c372a", "rtc-rs5c372", "rs5c372a",}, | 425 | {"ricoh,rs5c372a", "rs5c372a"}, |
427 | {"ricoh,rs5c372b", "rtc-rs5c372", "rs5c372b",}, | 426 | {"ricoh,rs5c372b", "rs5c372b"}, |
428 | {"ricoh,rv5c386", "rtc-rs5c372", "rv5c386",}, | 427 | {"ricoh,rv5c386", "rv5c386"}, |
429 | {"ricoh,rv5c387a", "rtc-rs5c372", "rv5c387a",}, | 428 | {"ricoh,rv5c387a", "rv5c387a"}, |
430 | {"dallas,ds1307", "rtc-ds1307", "ds1307",}, | 429 | {"dallas,ds1307", "ds1307"}, |
431 | {"dallas,ds1337", "rtc-ds1307", "ds1337",}, | 430 | {"dallas,ds1337", "ds1337"}, |
432 | {"dallas,ds1338", "rtc-ds1307", "ds1338",}, | 431 | {"dallas,ds1338", "ds1338"}, |
433 | {"dallas,ds1339", "rtc-ds1307", "ds1339",}, | 432 | {"dallas,ds1339", "ds1339"}, |
434 | {"dallas,ds1340", "rtc-ds1307", "ds1340",}, | 433 | {"dallas,ds1340", "ds1340"}, |
435 | {"stm,m41t00", "rtc-ds1307", "m41t00"}, | 434 | {"stm,m41t00", "m41t00"}, |
436 | {"dallas,ds1374", "rtc-ds1374", "rtc-ds1374",}, | 435 | {"dallas,ds1374", "rtc-ds1374"}, |
437 | }; | 436 | }; |
438 | 437 | ||
439 | static int __init of_find_i2c_driver(struct device_node *node, | 438 | static int __init of_find_i2c_driver(struct device_node *node, |
@@ -444,9 +443,7 @@ static int __init of_find_i2c_driver(struct device_node *node, | |||
444 | for (i = 0; i < ARRAY_SIZE(i2c_devices); i++) { | 443 | for (i = 0; i < ARRAY_SIZE(i2c_devices); i++) { |
445 | if (!of_device_is_compatible(node, i2c_devices[i].of_device)) | 444 | if (!of_device_is_compatible(node, i2c_devices[i].of_device)) |
446 | continue; | 445 | continue; |
447 | if (strlcpy(info->driver_name, i2c_devices[i].i2c_driver, | 446 | if (strlcpy(info->type, i2c_devices[i].i2c_type, |
448 | KOBJ_NAME_LEN) >= KOBJ_NAME_LEN || | ||
449 | strlcpy(info->type, i2c_devices[i].i2c_type, | ||
450 | I2C_NAME_SIZE) >= I2C_NAME_SIZE) | 447 | I2C_NAME_SIZE) >= I2C_NAME_SIZE) |
451 | return -ENOMEM; | 448 | return -ENOMEM; |
452 | return 0; | 449 | return 0; |
diff --git a/arch/sh/boards/renesas/migor/setup.c b/arch/sh/boards/renesas/migor/setup.c index 00d52a20d8a..e7c150d4970 100644 --- a/arch/sh/boards/renesas/migor/setup.c +++ b/arch/sh/boards/renesas/migor/setup.c | |||
@@ -199,8 +199,7 @@ static struct platform_device *migor_devices[] __initdata = { | |||
199 | 199 | ||
200 | static struct i2c_board_info __initdata migor_i2c_devices[] = { | 200 | static struct i2c_board_info __initdata migor_i2c_devices[] = { |
201 | { | 201 | { |
202 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 202 | I2C_BOARD_INFO("rs5c372b", 0x32), |
203 | .type = "rs5c372b", | ||
204 | }, | 203 | }, |
205 | { | 204 | { |
206 | I2C_BOARD_INFO("migor_ts", 0x51), | 205 | I2C_BOARD_INFO("migor_ts", 0x51), |
diff --git a/arch/sh/boards/renesas/r7780rp/setup.c b/arch/sh/boards/renesas/r7780rp/setup.c index a5c5e923650..ac0a96522e4 100644 --- a/arch/sh/boards/renesas/r7780rp/setup.c +++ b/arch/sh/boards/renesas/r7780rp/setup.c | |||
@@ -199,8 +199,7 @@ static struct platform_device smbus_device = { | |||
199 | 199 | ||
200 | static struct i2c_board_info __initdata highlander_i2c_devices[] = { | 200 | static struct i2c_board_info __initdata highlander_i2c_devices[] = { |
201 | { | 201 | { |
202 | I2C_BOARD_INFO("rtc-rs5c372", 0x32), | 202 | I2C_BOARD_INFO("r2025sd", 0x32), |
203 | .type = "r2025sd", | ||
204 | }, | 203 | }, |
205 | }; | 204 | }; |
206 | 205 | ||