diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-08-25 06:19:50 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-01 03:32:09 -0400 |
commit | 77a406da5a5b76445a816d5f043fc9aef4026ff1 (patch) | |
tree | ba8dc232d3ace00fe29186bcde1aa9209fd94929 /arch/arm/mach-imx | |
parent | 44505c0768971f4aa94ca09c8155448a46a7ff8a (diff) |
ARM: imx: fix name of macros to add imx-i2c devices
This is a follow up to
c698715 (ARM: imx: dynamically register imx-i2c devices (imx27))
2b92084 (ARM: imx: dynamically register imx-i2c devices (imx21))
6348e6b (ARM: imx: dynamically register imx-i2c devices (imx1))
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx')
-rw-r--r-- | arch/arm/mach-imx/devices-imx1.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices-imx21.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/devices-imx27.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx27.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-imx27_visstrim_m10.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx1ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mx27ads.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-mxt_td60.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-pca100.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-imx/mach-pcm038.c | 2 |
10 files changed, 11 insertions, 13 deletions
diff --git a/arch/arm/mach-imx/devices-imx1.h b/arch/arm/mach-imx/devices-imx1.h index 6cf08640dae9..81979486218e 100644 --- a/arch/arm/mach-imx/devices-imx1.h +++ b/arch/arm/mach-imx/devices-imx1.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <mach/devices-common.h> | 10 | #include <mach/devices-common.h> |
11 | 11 | ||
12 | extern const struct imx_imx_i2c_data imx1_imx_i2c_data __initconst; | 12 | extern const struct imx_imx_i2c_data imx1_imx_i2c_data __initconst; |
13 | #define imx1_add_i2c_imx(pdata) \ | 13 | #define imx1_add_imx_i2c(pdata) \ |
14 | imx_add_imx_i2c(&imx1_imx_i2c_data, pdata) | 14 | imx_add_imx_i2c(&imx1_imx_i2c_data, pdata) |
15 | 15 | ||
16 | extern const struct imx_imx_uart_3irq_data imx1_imx_uart_data[] __initconst; | 16 | extern const struct imx_imx_uart_3irq_data imx1_imx_uart_data[] __initconst; |
diff --git a/arch/arm/mach-imx/devices-imx21.h b/arch/arm/mach-imx/devices-imx21.h index d3d2b2669b96..4795d70314db 100644 --- a/arch/arm/mach-imx/devices-imx21.h +++ b/arch/arm/mach-imx/devices-imx21.h | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <mach/devices-common.h> | 10 | #include <mach/devices-common.h> |
11 | 11 | ||
12 | extern const struct imx_imx_i2c_data imx21_imx_i2c_data __initconst; | 12 | extern const struct imx_imx_i2c_data imx21_imx_i2c_data __initconst; |
13 | #define imx21_add_i2c_imx(pdata) \ | 13 | #define imx21_add_imx_i2c(pdata) \ |
14 | imx_add_imx_i2c(&imx21_imx_i2c_data, pdata) | 14 | imx_add_imx_i2c(&imx21_imx_i2c_data, pdata) |
15 | 15 | ||
16 | extern const struct imx_imx_ssi_data imx21_imx_ssi_data[] __initconst; | 16 | extern const struct imx_imx_ssi_data imx21_imx_ssi_data[] __initconst; |
diff --git a/arch/arm/mach-imx/devices-imx27.h b/arch/arm/mach-imx/devices-imx27.h index 193dfb55023b..176552199abc 100644 --- a/arch/arm/mach-imx/devices-imx27.h +++ b/arch/arm/mach-imx/devices-imx27.h | |||
@@ -12,8 +12,6 @@ | |||
12 | extern const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst; | 12 | extern const struct imx_imx_i2c_data imx27_imx_i2c_data[] __initconst; |
13 | #define imx27_add_imx_i2c(id, pdata) \ | 13 | #define imx27_add_imx_i2c(id, pdata) \ |
14 | imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata) | 14 | imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata) |
15 | #define imx27_add_i2c_imx0(pdata) imx27_add_imx_i2c(0, pdata) | ||
16 | #define imx27_add_i2c_imx1(pdata) imx27_add_imx_i2c(1, pdata) | ||
17 | 15 | ||
18 | extern const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst; | 16 | extern const struct imx_imx_ssi_data imx27_imx_ssi_data[] __initconst; |
19 | #define imx27_add_imx_ssi(id, pdata) \ | 17 | #define imx27_add_imx_ssi(id, pdata) \ |
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index 339150ab0ea5..f00ddd9829b5 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void) | |||
259 | i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices, | 259 | i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices, |
260 | ARRAY_SIZE(eukrea_cpuimx27_i2c_devices)); | 260 | ARRAY_SIZE(eukrea_cpuimx27_i2c_devices)); |
261 | 261 | ||
262 | imx27_add_i2c_imx1(&cpuimx27_i2c1_data); | 262 | imx27_add_imx_i2c(1, &cpuimx27_i2c1_data); |
263 | 263 | ||
264 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 264 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
265 | 265 | ||
diff --git a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c index 6dad632b83d6..7b3eed043ef1 100644 --- a/arch/arm/mach-imx/mach-imx27_visstrim_m10.c +++ b/arch/arm/mach-imx/mach-imx27_visstrim_m10.c | |||
@@ -236,8 +236,8 @@ static void __init visstrim_m10_board_init(void) | |||
236 | 236 | ||
237 | i2c_register_board_info(0, visstrim_m10_i2c_devices, | 237 | i2c_register_board_info(0, visstrim_m10_i2c_devices, |
238 | ARRAY_SIZE(visstrim_m10_i2c_devices)); | 238 | ARRAY_SIZE(visstrim_m10_i2c_devices)); |
239 | imx27_add_i2c_imx0(&visstrim_m10_i2c_data); | 239 | imx27_add_imx_i2c(0, &visstrim_m10_i2c_data); |
240 | imx27_add_i2c_imx1(&visstrim_m10_i2c_data); | 240 | imx27_add_imx_i2c(1, &visstrim_m10_i2c_data); |
241 | mxc_register_device(&mxc_sdhc_device0, &visstrim_m10_sdhc_pdata); | 241 | mxc_register_device(&mxc_sdhc_device0, &visstrim_m10_sdhc_pdata); |
242 | mxc_register_device(&mxc_otg_host, &visstrim_m10_usbotg_pdata); | 242 | mxc_register_device(&mxc_otg_host, &visstrim_m10_usbotg_pdata); |
243 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 243 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
diff --git a/arch/arm/mach-imx/mach-mx1ads.c b/arch/arm/mach-imx/mach-mx1ads.c index 77a760cfadc0..6e2f24952f1b 100644 --- a/arch/arm/mach-imx/mach-mx1ads.c +++ b/arch/arm/mach-imx/mach-mx1ads.c | |||
@@ -131,7 +131,7 @@ static void __init mx1ads_init(void) | |||
131 | i2c_register_board_info(0, mx1ads_i2c_devices, | 131 | i2c_register_board_info(0, mx1ads_i2c_devices, |
132 | ARRAY_SIZE(mx1ads_i2c_devices)); | 132 | ARRAY_SIZE(mx1ads_i2c_devices)); |
133 | 133 | ||
134 | imx1_add_i2c_imx(&mx1ads_i2c_data); | 134 | imx1_add_imx_i2c(&mx1ads_i2c_data); |
135 | } | 135 | } |
136 | 136 | ||
137 | static void __init mx1ads_timer_init(void) | 137 | static void __init mx1ads_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index 9c77da98a10e..6be6033c876d 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -308,7 +308,7 @@ static void __init mx27ads_board_init(void) | |||
308 | /* only the i2c master 1 is used on this CPU card */ | 308 | /* only the i2c master 1 is used on this CPU card */ |
309 | i2c_register_board_info(1, mx27ads_i2c_devices, | 309 | i2c_register_board_info(1, mx27ads_i2c_devices, |
310 | ARRAY_SIZE(mx27ads_i2c_devices)); | 310 | ARRAY_SIZE(mx27ads_i2c_devices)); |
311 | imx27_add_i2c_imx1(&mx27ads_i2c1_data); | 311 | imx27_add_imx_i2c(1, &mx27ads_i2c1_data); |
312 | mxc_register_device(&mxc_fb_device, &mx27ads_fb_data); | 312 | mxc_register_device(&mxc_fb_device, &mx27ads_fb_data); |
313 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); | 313 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); |
314 | mxc_register_device(&mxc_sdhc_device1, &sdhc2_pdata); | 314 | mxc_register_device(&mxc_sdhc_device1, &sdhc2_pdata); |
diff --git a/arch/arm/mach-imx/mach-mxt_td60.c b/arch/arm/mach-imx/mach-mxt_td60.c index a3a1e452d4c5..d878bb99be7e 100644 --- a/arch/arm/mach-imx/mach-mxt_td60.c +++ b/arch/arm/mach-imx/mach-mxt_td60.c | |||
@@ -255,8 +255,8 @@ static void __init mxt_td60_board_init(void) | |||
255 | i2c_register_board_info(1, mxt_td60_i2c2_devices, | 255 | i2c_register_board_info(1, mxt_td60_i2c2_devices, |
256 | ARRAY_SIZE(mxt_td60_i2c2_devices)); | 256 | ARRAY_SIZE(mxt_td60_i2c2_devices)); |
257 | 257 | ||
258 | imx27_add_i2c_imx0(&mxt_td60_i2c0_data); | 258 | imx27_add_imx_i2c(0, &mxt_td60_i2c0_data); |
259 | imx27_add_i2c_imx1(&mxt_td60_i2c1_data); | 259 | imx27_add_imx_i2c(1, &mxt_td60_i2c1_data); |
260 | mxc_register_device(&mxc_fb_device, &mxt_td60_fb_data); | 260 | mxc_register_device(&mxc_fb_device, &mxt_td60_fb_data); |
261 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); | 261 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); |
262 | 262 | ||
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index 93e0d66e37dc..cccf521de6b1 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -400,7 +400,7 @@ static void __init pca100_init(void) | |||
400 | i2c_register_board_info(1, pca100_i2c_devices, | 400 | i2c_register_board_info(1, pca100_i2c_devices, |
401 | ARRAY_SIZE(pca100_i2c_devices)); | 401 | ARRAY_SIZE(pca100_i2c_devices)); |
402 | 402 | ||
403 | imx27_add_i2c_imx1(&pca100_i2c1_data); | 403 | imx27_add_imx_i2c(1, &pca100_i2c1_data); |
404 | 404 | ||
405 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) | 405 | #if defined(CONFIG_SPI_IMX) || defined(CONFIG_SPI_IMX_MODULE) |
406 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); | 406 | mxc_gpio_mode(GPIO_PORTD | 28 | GPIO_GPIO | GPIO_IN); |
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index 9212e8f37001..641f9bb08b26 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -309,7 +309,7 @@ static void __init pcm038_init(void) | |||
309 | i2c_register_board_info(1, pcm038_i2c_devices, | 309 | i2c_register_board_info(1, pcm038_i2c_devices, |
310 | ARRAY_SIZE(pcm038_i2c_devices)); | 310 | ARRAY_SIZE(pcm038_i2c_devices)); |
311 | 311 | ||
312 | imx27_add_i2c_imx1(&pcm038_i2c1_data); | 312 | imx27_add_imx_i2c(1, &pcm038_i2c1_data); |
313 | 313 | ||
314 | /* PE18 for user-LED D40 */ | 314 | /* PE18 for user-LED D40 */ |
315 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); | 315 | mxc_gpio_mode(GPIO_PORTE | 18 | GPIO_GPIO | GPIO_OUT); |