diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2010-11-26 09:25:59 -0500 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-12-03 05:05:15 -0500 |
commit | b99545cb59dc0a55507100a1335f4fd0ed521032 (patch) | |
tree | dffdb51354dd1ffdf156497bcec7ebee67bb6d8e /arch/arm/mach-mx5 | |
parent | d94ed1287e11f91e4f4096838179984b0206be5e (diff) |
ARM: mx5: dynamically allocate imx2-wdt devices
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5')
-rw-r--r-- | arch/arm/mach-mx5/devices-imx51.h | 4 | ||||
-rw-r--r-- | arch/arm/mach-mx5/devices.c | 15 | ||||
-rw-r--r-- | arch/arm/mach-mx5/devices.h | 1 |
3 files changed, 4 insertions, 16 deletions
diff --git a/arch/arm/mach-mx5/devices-imx51.h b/arch/arm/mach-mx5/devices-imx51.h index 01b71ef4086c..939d2e813708 100644 --- a/arch/arm/mach-mx5/devices-imx51.h +++ b/arch/arm/mach-mx5/devices-imx51.h | |||
@@ -43,3 +43,7 @@ extern const struct imx_spi_imx_data imx51_cspi_data __initconst; | |||
43 | extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst; | 43 | extern const struct imx_spi_imx_data imx51_ecspi_data[] __initconst; |
44 | #define imx51_add_ecspi(id, pdata) \ | 44 | #define imx51_add_ecspi(id, pdata) \ |
45 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) | 45 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) |
46 | |||
47 | extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data __initconst; | ||
48 | #define imx51_imx2_wdt_data(pdata) \ | ||
49 | imx_add_imx2_wdt_data(&imx51_imx2_wdt_data, pdata) | ||
diff --git a/arch/arm/mach-mx5/devices.c b/arch/arm/mach-mx5/devices.c index d926203023ec..ac55f7f0c204 100644 --- a/arch/arm/mach-mx5/devices.c +++ b/arch/arm/mach-mx5/devices.c | |||
@@ -97,21 +97,6 @@ struct platform_device mxc_usbh1_device = { | |||
97 | }, | 97 | }, |
98 | }; | 98 | }; |
99 | 99 | ||
100 | static struct resource mxc_wdt_resources[] = { | ||
101 | { | ||
102 | .start = MX51_WDOG_BASE_ADDR, | ||
103 | .end = MX51_WDOG_BASE_ADDR + SZ_16K - 1, | ||
104 | .flags = IORESOURCE_MEM, | ||
105 | }, | ||
106 | }; | ||
107 | |||
108 | struct platform_device mxc_wdt = { | ||
109 | .name = "imx2-wdt", | ||
110 | .id = 0, | ||
111 | .num_resources = ARRAY_SIZE(mxc_wdt_resources), | ||
112 | .resource = mxc_wdt_resources, | ||
113 | }; | ||
114 | |||
115 | static struct resource mxc_kpp_resources[] = { | 100 | static struct resource mxc_kpp_resources[] = { |
116 | { | 101 | { |
117 | .start = MX51_MXC_INT_KPP, | 102 | .start = MX51_MXC_INT_KPP, |
diff --git a/arch/arm/mach-mx5/devices.h b/arch/arm/mach-mx5/devices.h index af1d07c0bbc1..ccb7cdc9921b 100644 --- a/arch/arm/mach-mx5/devices.h +++ b/arch/arm/mach-mx5/devices.h | |||
@@ -1,6 +1,5 @@ | |||
1 | extern struct platform_device mxc_usbdr_host_device; | 1 | extern struct platform_device mxc_usbdr_host_device; |
2 | extern struct platform_device mxc_usbh1_device; | 2 | extern struct platform_device mxc_usbh1_device; |
3 | extern struct platform_device mxc_usbdr_udc_device; | 3 | extern struct platform_device mxc_usbdr_udc_device; |
4 | extern struct platform_device mxc_wdt; | ||
5 | extern struct platform_device mxc_hsi2c_device; | 4 | extern struct platform_device mxc_hsi2c_device; |
6 | extern struct platform_device mxc_keypad_device; | 5 | extern struct platform_device mxc_keypad_device; |