diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 12:03:05 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:43 -0400 |
commit | 4a9b8b0b061ef750b5ef31d1e9d2fa0206731f2f (patch) | |
tree | d6128f7116c4cefdb801897c6febe5e1297a1228 /arch/arm/mach-mx3/mach-pcm037.c | |
parent | c69871597dd173af2d7615429c0ee6aa10fae42b (diff) |
ARM: imx: dynamically register imx-i2c devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-pcm037.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm037.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-mx3/mach-pcm037.c b/arch/arm/mach-mx3/mach-pcm037.c index d7fef469990a..7e3fc470d55d 100644 --- a/arch/arm/mach-mx3/mach-pcm037.c +++ b/arch/arm/mach-mx3/mach-pcm037.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #include <asm/mach/map.h> | 41 | #include <asm/mach/map.h> |
42 | #include <mach/common.h> | 42 | #include <mach/common.h> |
43 | #include <mach/hardware.h> | 43 | #include <mach/hardware.h> |
44 | #include <mach/i2c.h> | ||
45 | #include <mach/imx-uart.h> | 44 | #include <mach/imx-uart.h> |
46 | #include <mach/iomux-mx3.h> | 45 | #include <mach/iomux-mx3.h> |
47 | #include <mach/ipu.h> | 46 | #include <mach/ipu.h> |
@@ -280,11 +279,11 @@ pcm037_nand_board_info __initconst = { | |||
280 | .hw_ecc = 1, | 279 | .hw_ecc = 1, |
281 | }; | 280 | }; |
282 | 281 | ||
283 | static struct imxi2c_platform_data pcm037_i2c_1_data = { | 282 | static const struct imxi2c_platform_data pcm037_i2c1_data __initconst = { |
284 | .bitrate = 100000, | 283 | .bitrate = 100000, |
285 | }; | 284 | }; |
286 | 285 | ||
287 | static struct imxi2c_platform_data pcm037_i2c_2_data = { | 286 | static const struct imxi2c_platform_data pcm037_i2c2_data __initconst = { |
288 | .bitrate = 20000, | 287 | .bitrate = 20000, |
289 | }; | 288 | }; |
290 | 289 | ||
@@ -630,8 +629,8 @@ static void __init mxc_board_init(void) | |||
630 | i2c_register_board_info(1, pcm037_i2c_devices, | 629 | i2c_register_board_info(1, pcm037_i2c_devices, |
631 | ARRAY_SIZE(pcm037_i2c_devices)); | 630 | ARRAY_SIZE(pcm037_i2c_devices)); |
632 | 631 | ||
633 | mxc_register_device(&mxc_i2c_device1, &pcm037_i2c_1_data); | 632 | imx31_add_imx_i2c1(&pcm037_i2c1_data); |
634 | mxc_register_device(&mxc_i2c_device2, &pcm037_i2c_2_data); | 633 | imx31_add_imx_i2c2(&pcm037_i2c2_data); |
635 | 634 | ||
636 | imx31_add_mxc_nand(&pcm037_nand_board_info); | 635 | imx31_add_mxc_nand(&pcm037_nand_board_info); |
637 | mxc_register_device(&mxcsdhc_device0, &sdhc_pdata); | 636 | mxc_register_device(&mxcsdhc_device0, &sdhc_pdata); |