diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-cpuimx51.c')
-rw-r--r-- | arch/arm/mach-mx5/board-cpuimx51.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx5/board-cpuimx51.c b/arch/arm/mach-mx5/board-cpuimx51.c index 623607a20f57..d52f2527f6bf 100644 --- a/arch/arm/mach-mx5/board-cpuimx51.c +++ b/arch/arm/mach-mx5/board-cpuimx51.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <mach/hardware.h> | 30 | #include <mach/hardware.h> |
31 | #include <mach/imx-uart.h> | 31 | #include <mach/imx-uart.h> |
32 | #include <mach/iomux-mx51.h> | 32 | #include <mach/iomux-mx51.h> |
33 | #include <mach/i2c.h> | ||
34 | #include <mach/mxc_ehci.h> | 33 | #include <mach/mxc_ehci.h> |
35 | 34 | ||
36 | #include <asm/irq.h> | 35 | #include <asm/irq.h> |
@@ -152,7 +151,8 @@ static struct imxuart_platform_data uart_pdata = { | |||
152 | .flags = IMXUART_HAVE_RTSCTS, | 151 | .flags = IMXUART_HAVE_RTSCTS, |
153 | }; | 152 | }; |
154 | 153 | ||
155 | static struct imxi2c_platform_data eukrea_cpuimx51_i2c_data = { | 154 | static const |
155 | struct imxi2c_platform_data eukrea_cpuimx51_i2c_data __initconst = { | ||
156 | .bitrate = 100000, | 156 | .bitrate = 100000, |
157 | }; | 157 | }; |
158 | 158 | ||
@@ -255,7 +255,7 @@ static void __init eukrea_cpuimx51_init(void) | |||
255 | 255 | ||
256 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 256 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
257 | 257 | ||
258 | mxc_register_device(&mxc_i2c_device1, &eukrea_cpuimx51_i2c_data); | 258 | imx51_add_imx_i2c(1, &eukrea_cpuimx51_i2c_data); |
259 | i2c_register_board_info(1, eukrea_cpuimx51_i2c_devices, | 259 | i2c_register_board_info(1, eukrea_cpuimx51_i2c_devices, |
260 | ARRAY_SIZE(eukrea_cpuimx51_i2c_devices)); | 260 | ARRAY_SIZE(eukrea_cpuimx51_i2c_devices)); |
261 | 261 | ||