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/arm | |
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/arm')
-rw-r--r-- | arch/arm/mach-at91/board-csb337.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-dk.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/board-eb9200.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/em7210.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/glantank.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-iop32x/n2100.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/dsmg600-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/nas100d-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-ixp4xx/nslu2-setup.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 1 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/db88f5281-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/dns323-setup.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/kurobox_pro-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/rd88f5182-setup.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-orion5x/ts209-setup.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-pxa/pcm990-baseboard.c | 5 |
18 files changed, 17 insertions, 42 deletions
diff --git a/arch/arm/mach-at91/board-csb337.c b/arch/arm/mach-at91/board-csb337.c index 26fea4dcc3a0..81f1ebb4e964 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 0a897efeba8e..c1a813c7169b 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 b7b79bb9d6c4..af1a1d8ecc30 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 c947152f9a3c..4877597c8758 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 d2a7b04f1cb0..d4fca75ce542 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 bc91d6e66bc4..2741063bf361 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 8cb07437a807..a51bfa6978b6 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 159e1c4f1eda..84b5e62a9c0a 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 d9a182895a0f..a48a6655b887 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 507987720015..4b444fdaafea 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 c3ef1ee5f77b..7fbaa8d648cd 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 4f9baba7d893..a66505f58b15 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 872aed372327..ea3141e3e3c0 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 d67790ef236e..058a525c2ab6 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 91413455beba..707db4be74a6 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 37e8b2dc3ed5..7082fe8f83b1 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 fd43863a86f6..6f93668b0ed5 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 e6be9d0aeccf..49d951db0f3d 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 | }; |