diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 09:26:07 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:37 -0400 |
commit | 6348e6b54e8609be11826a8e30357a03ba201500 (patch) | |
tree | dd9d1a9c735c45769658fc135920afc0a1f6f9a5 /arch/arm/mach-imx/mach-mx1ads.c | |
parent | 99a754d8ee65c32329440f85167ead5cc6e32033 (diff) |
ARM: imx: dynamically register imx-i2c devices (imx1)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/mach-mx1ads.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mx1ads.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/mach-mx1ads.c b/arch/arm/mach-imx/mach-mx1ads.c index 5d7c85f8aaf5..339d41ad19d5 100644 --- a/arch/arm/mach-imx/mach-mx1ads.c +++ b/arch/arm/mach-imx/mach-mx1ads.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <mach/iomux-mx1.h> | 30 | #include <mach/iomux-mx1.h> |
31 | #include <mach/irqs.h> | 31 | #include <mach/irqs.h> |
32 | 32 | ||
33 | #include "devices-imx1.h" | ||
33 | #include "devices.h" | 34 | #include "devices.h" |
34 | 35 | ||
35 | static int mx1ads_pins[] = { | 36 | static int mx1ads_pins[] = { |
@@ -98,7 +99,7 @@ static struct pcf857x_platform_data pcf857x_data[] = { | |||
98 | } | 99 | } |
99 | }; | 100 | }; |
100 | 101 | ||
101 | static struct imxi2c_platform_data mx1ads_i2c_data = { | 102 | static const struct imxi2c_platform_data mx1ads_i2c_data __initconst = { |
102 | .bitrate = 100000, | 103 | .bitrate = 100000, |
103 | }; | 104 | }; |
104 | 105 | ||
@@ -131,7 +132,7 @@ static void __init mx1ads_init(void) | |||
131 | i2c_register_board_info(0, mx1ads_i2c_devices, | 132 | i2c_register_board_info(0, mx1ads_i2c_devices, |
132 | ARRAY_SIZE(mx1ads_i2c_devices)); | 133 | ARRAY_SIZE(mx1ads_i2c_devices)); |
133 | 134 | ||
134 | mxc_register_device(&imx_i2c_device0, &mx1ads_i2c_data); | 135 | imx1_add_i2c_imx(&mx1ads_i2c_data); |
135 | } | 136 | } |
136 | 137 | ||
137 | static void __init mx1ads_timer_init(void) | 138 | static void __init mx1ads_timer_init(void) |