diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-15 09:28:45 -0500 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-19 15:54:36 -0500 |
commit | 742269e2d971957c84f364c4e9f5c6439964ef01 (patch) | |
tree | bebc9ea6b88df9424494000316e5b0c1098becdb /arch/arm/plat-mxc/devices/platform-imx2-wdt.c | |
parent | 2d58de2805f93bdb8fa0608d98e1871bb28ec091 (diff) |
ARM: mx3: dynamically allocate imx2-wdt devices
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-imx2-wdt.c')
-rw-r--r-- | arch/arm/plat-mxc/devices/platform-imx2-wdt.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-imx2-wdt.c b/arch/arm/plat-mxc/devices/platform-imx2-wdt.c index d2c97aae1eee..c61bd4e63149 100644 --- a/arch/arm/plat-mxc/devices/platform-imx2-wdt.c +++ b/arch/arm/plat-mxc/devices/platform-imx2-wdt.c | |||
@@ -31,6 +31,16 @@ const struct imx_imx2_wdt_data imx27_imx2_wdt_data __initconst = | |||
31 | imx_imx2_wdt_data_entry_single(MX27, SZ_4K); | 31 | imx_imx2_wdt_data_entry_single(MX27, SZ_4K); |
32 | #endif /* ifdef CONFIG_SOC_IMX27 */ | 32 | #endif /* ifdef CONFIG_SOC_IMX27 */ |
33 | 33 | ||
34 | #ifdef CONFIG_SOC_IMX31 | ||
35 | const struct imx_imx2_wdt_data imx31_imx2_wdt_data __initconst = | ||
36 | imx_imx2_wdt_data_entry_single(MX31, SZ_16K); | ||
37 | #endif /* ifdef CONFIG_SOC_IMX31 */ | ||
38 | |||
39 | #ifdef CONFIG_SOC_IMX35 | ||
40 | const struct imx_imx2_wdt_data imx35_imx2_wdt_data __initconst = | ||
41 | imx_imx2_wdt_data_entry_single(MX35, SZ_16K); | ||
42 | #endif /* ifdef CONFIG_SOC_IMX35 */ | ||
43 | |||
34 | struct platform_device *__init imx_add_imx2_wdt( | 44 | struct platform_device *__init imx_add_imx2_wdt( |
35 | const struct imx_imx2_wdt_data *data) | 45 | const struct imx_imx2_wdt_data *data) |
36 | { | 46 | { |