diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 11:25:40 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:41 -0400 |
commit | c69871597dd173af2d7615429c0ee6aa10fae42b (patch) | |
tree | 3747d63224d52637489b268c39f7a6346899bc4c /arch/arm/mach-imx/mach-mxt_td60.c | |
parent | a8ff045603c712d6d61e07260ec2c0e44c40d14c (diff) |
ARM: imx: dynamically register imx-i2c devices (imx27)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mxt_td60.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mxt_td60.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/arm/mach-imx/mach-mxt_td60.c b/arch/arm/mach-imx/mach-mxt_td60.c index 447c68fe4383..b80b41ea2c76 100644 --- a/arch/arm/mach-imx/mach-mxt_td60.c +++ b/arch/arm/mach-imx/mach-mxt_td60.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <mach/imx-uart.h> | 31 | #include <mach/imx-uart.h> |
32 | #include <mach/iomux-mx27.h> | 32 | #include <mach/iomux-mx27.h> |
33 | #include <mach/mxc_nand.h> | 33 | #include <mach/mxc_nand.h> |
34 | #include <mach/i2c.h> | ||
35 | #include <linux/i2c/pca953x.h> | 34 | #include <linux/i2c/pca953x.h> |
36 | #include <mach/imxfb.h> | 35 | #include <mach/imxfb.h> |
37 | #include <mach/mmc.h> | 36 | #include <mach/mmc.h> |
@@ -131,7 +130,7 @@ mxt_td60_nand_board_info __initconst = { | |||
131 | .hw_ecc = 1, | 130 | .hw_ecc = 1, |
132 | }; | 131 | }; |
133 | 132 | ||
134 | static struct imxi2c_platform_data mxt_td60_i2c_data = { | 133 | static const struct imxi2c_platform_data mxt_td60_i2c0_data __initconst = { |
135 | .bitrate = 100000, | 134 | .bitrate = 100000, |
136 | }; | 135 | }; |
137 | 136 | ||
@@ -171,7 +170,7 @@ static struct i2c_board_info mxt_td60_i2c_devices[] = { | |||
171 | }, | 170 | }, |
172 | }; | 171 | }; |
173 | 172 | ||
174 | static struct imxi2c_platform_data mxt_td60_i2c2_data = { | 173 | static const struct imxi2c_platform_data mxt_td60_i2c1_data __initconst = { |
175 | .bitrate = 100000, | 174 | .bitrate = 100000, |
176 | }; | 175 | }; |
177 | 176 | ||
@@ -263,8 +262,8 @@ static void __init mxt_td60_board_init(void) | |||
263 | i2c_register_board_info(1, mxt_td60_i2c2_devices, | 262 | i2c_register_board_info(1, mxt_td60_i2c2_devices, |
264 | ARRAY_SIZE(mxt_td60_i2c2_devices)); | 263 | ARRAY_SIZE(mxt_td60_i2c2_devices)); |
265 | 264 | ||
266 | mxc_register_device(&mxc_i2c_device0, &mxt_td60_i2c_data); | 265 | imx27_add_i2c_imx0(&mxt_td60_i2c0_data); |
267 | mxc_register_device(&mxc_i2c_device1, &mxt_td60_i2c2_data); | 266 | imx27_add_i2c_imx1(&mxt_td60_i2c1_data); |
268 | mxc_register_device(&mxc_fb_device, &mxt_td60_fb_data); | 267 | mxc_register_device(&mxc_fb_device, &mxt_td60_fb_data); |
269 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); | 268 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); |
270 | 269 | ||