diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-09-30 10:44:53 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-10-01 03:32:05 -0400 |
commit | 44505c0768971f4aa94ca09c8155448a46a7ff8a (patch) | |
tree | c2ce5c93554182d73eaa95972c4ba9a7cff646a7 /arch/arm/mach-mx5/board-mx51_babbage.c | |
parent | 64de5ec168d9743903e6ec482c3e9f37af49f9c1 (diff) |
ARM: mx5: dynamically register imx-i2c devices
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-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index caa8f680649e..3f3075d7768f 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <mach/hardware.h> | 23 | #include <mach/hardware.h> |
24 | #include <mach/imx-uart.h> | 24 | #include <mach/imx-uart.h> |
25 | #include <mach/iomux-mx51.h> | 25 | #include <mach/iomux-mx51.h> |
26 | #include <mach/i2c.h> | ||
27 | #include <mach/mxc_ehci.h> | 26 | #include <mach/mxc_ehci.h> |
28 | 27 | ||
29 | #include <asm/irq.h> | 28 | #include <asm/irq.h> |
@@ -137,7 +136,7 @@ static inline void mxc_init_imx_uart(void) | |||
137 | } | 136 | } |
138 | #endif /* SERIAL_IMX */ | 137 | #endif /* SERIAL_IMX */ |
139 | 138 | ||
140 | static struct imxi2c_platform_data babbage_i2c_data = { | 139 | static const struct imxi2c_platform_data babbage_i2c_data __initconst = { |
141 | .bitrate = 100000, | 140 | .bitrate = 100000, |
142 | }; | 141 | }; |
143 | 142 | ||
@@ -293,8 +292,8 @@ static void __init mxc_board_init(void) | |||
293 | babbage_fec_reset(); | 292 | babbage_fec_reset(); |
294 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 293 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
295 | 294 | ||
296 | mxc_register_device(&mxc_i2c_device0, &babbage_i2c_data); | 295 | imx51_add_imx_i2c(0, &babbage_i2c_data); |
297 | mxc_register_device(&mxc_i2c_device1, &babbage_i2c_data); | 296 | imx51_add_imx_i2c(1, &babbage_i2c_data); |
298 | mxc_register_device(&mxc_hsi2c_device, &babbage_hsi2c_data); | 297 | mxc_register_device(&mxc_hsi2c_device, &babbage_hsi2c_data); |
299 | 298 | ||
300 | if (otg_mode_host) | 299 | if (otg_mode_host) |