diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 15:28:33 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-07-06 15:28:33 -0400 |
commit | 0508c8e7d47bb64a13cb5d080c4520fe90880b18 (patch) | |
tree | d9eafb85892d0b2860cff28bc2c06f6c03472204 | |
parent | a26361a77edc724492558a458af6c19cf821ab87 (diff) | |
parent | bec31a85f0f83567ed4b77e0cd6399bac2f0f037 (diff) |
Merge tag 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6 into next/cleanup
From Sascha Hauer <s.hauer@pengutronix.de>:
ARM i.MX cleanups for v3.6
* tag 'imx-cleanup' of git://git.pengutronix.de/git/imx/linux-2.6:
ARM: imx: remove unused pdata from device macros
ARM: imx: Kconfig: Remove IMX_HAVE_PLATFORM_IMX_SSI from MACH_MX25_3DS
ARM: imx27/dt: make dt_compat entry const
ARM: imx: cleanup otg_mode
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
33 files changed, 90 insertions, 91 deletions
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index eff4db5de0dd..0da882a3c063 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig | |||
@@ -158,7 +158,6 @@ config MACH_MX25_3DS | |||
158 | select IMX_HAVE_PLATFORM_IMX2_WDT | 158 | select IMX_HAVE_PLATFORM_IMX2_WDT |
159 | select IMX_HAVE_PLATFORM_IMXDI_RTC | 159 | select IMX_HAVE_PLATFORM_IMXDI_RTC |
160 | select IMX_HAVE_PLATFORM_IMX_I2C | 160 | select IMX_HAVE_PLATFORM_IMX_I2C |
161 | select IMX_HAVE_PLATFORM_IMX_SSI | ||
162 | select IMX_HAVE_PLATFORM_IMX_FB | 161 | select IMX_HAVE_PLATFORM_IMX_FB |
163 | select IMX_HAVE_PLATFORM_IMX_KEYPAD | 162 | select IMX_HAVE_PLATFORM_IMX_KEYPAD |
164 | select IMX_HAVE_PLATFORM_IMX_UART | 163 | select IMX_HAVE_PLATFORM_IMX_UART |
diff --git a/arch/arm/mach-imx/devices-imx21.h b/arch/arm/mach-imx/devices-imx21.h index 2628e0c474dc..93ece55f75df 100644 --- a/arch/arm/mach-imx/devices-imx21.h +++ b/arch/arm/mach-imx/devices-imx21.h | |||
@@ -14,7 +14,7 @@ extern const struct imx_imx21_hcd_data imx21_imx21_hcd_data; | |||
14 | imx_add_imx21_hcd(&imx21_imx21_hcd_data, pdata) | 14 | imx_add_imx21_hcd(&imx21_imx21_hcd_data, pdata) |
15 | 15 | ||
16 | extern const struct imx_imx2_wdt_data imx21_imx2_wdt_data; | 16 | extern const struct imx_imx2_wdt_data imx21_imx2_wdt_data; |
17 | #define imx21_add_imx2_wdt(pdata) \ | 17 | #define imx21_add_imx2_wdt() \ |
18 | imx_add_imx2_wdt(&imx21_imx2_wdt_data) | 18 | imx_add_imx2_wdt(&imx21_imx2_wdt_data) |
19 | 19 | ||
20 | extern const struct imx_imx_fb_data imx21_imx_fb_data; | 20 | extern const struct imx_imx_fb_data imx21_imx_fb_data; |
@@ -50,7 +50,7 @@ extern const struct imx_mxc_nand_data imx21_mxc_nand_data; | |||
50 | imx_add_mxc_nand(&imx21_mxc_nand_data, pdata) | 50 | imx_add_mxc_nand(&imx21_mxc_nand_data, pdata) |
51 | 51 | ||
52 | extern const struct imx_mxc_w1_data imx21_mxc_w1_data; | 52 | extern const struct imx_mxc_w1_data imx21_mxc_w1_data; |
53 | #define imx21_add_mxc_w1(pdata) \ | 53 | #define imx21_add_mxc_w1() \ |
54 | imx_add_mxc_w1(&imx21_mxc_w1_data) | 54 | imx_add_mxc_w1(&imx21_mxc_w1_data) |
55 | 55 | ||
56 | extern const struct imx_spi_imx_data imx21_cspi_data[]; | 56 | extern const struct imx_spi_imx_data imx21_cspi_data[]; |
diff --git a/arch/arm/mach-imx/devices-imx25.h b/arch/arm/mach-imx/devices-imx25.h index efa0761c508d..f8e03dd1f116 100644 --- a/arch/arm/mach-imx/devices-imx25.h +++ b/arch/arm/mach-imx/devices-imx25.h | |||
@@ -24,11 +24,11 @@ extern const struct imx_fsl_usb2_udc_data imx25_fsl_usb2_udc_data; | |||
24 | imx_add_fsl_usb2_udc(&imx25_fsl_usb2_udc_data, pdata) | 24 | imx_add_fsl_usb2_udc(&imx25_fsl_usb2_udc_data, pdata) |
25 | 25 | ||
26 | extern struct imx_imxdi_rtc_data imx25_imxdi_rtc_data; | 26 | extern struct imx_imxdi_rtc_data imx25_imxdi_rtc_data; |
27 | #define imx25_add_imxdi_rtc(pdata) \ | 27 | #define imx25_add_imxdi_rtc() \ |
28 | imx_add_imxdi_rtc(&imx25_imxdi_rtc_data) | 28 | imx_add_imxdi_rtc(&imx25_imxdi_rtc_data) |
29 | 29 | ||
30 | extern const struct imx_imx2_wdt_data imx25_imx2_wdt_data; | 30 | extern const struct imx_imx2_wdt_data imx25_imx2_wdt_data; |
31 | #define imx25_add_imx2_wdt(pdata) \ | 31 | #define imx25_add_imx2_wdt() \ |
32 | imx_add_imx2_wdt(&imx25_imx2_wdt_data) | 32 | imx_add_imx2_wdt(&imx25_imx2_wdt_data) |
33 | 33 | ||
34 | extern const struct imx_imx_fb_data imx25_imx_fb_data; | 34 | extern const struct imx_imx_fb_data imx25_imx_fb_data; |
diff --git a/arch/arm/mach-imx/devices-imx27.h b/arch/arm/mach-imx/devices-imx27.h index 28537a5d9048..436c5720fe6a 100644 --- a/arch/arm/mach-imx/devices-imx27.h +++ b/arch/arm/mach-imx/devices-imx27.h | |||
@@ -18,7 +18,7 @@ extern const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data; | |||
18 | imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata) | 18 | imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata) |
19 | 19 | ||
20 | extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data; | 20 | extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data; |
21 | #define imx27_add_imx2_wdt(pdata) \ | 21 | #define imx27_add_imx2_wdt() \ |
22 | imx_add_imx2_wdt(&imx27_imx2_wdt_data) | 22 | imx_add_imx2_wdt(&imx27_imx2_wdt_data) |
23 | 23 | ||
24 | extern const struct imx_imx_fb_data imx27_imx_fb_data; | 24 | extern const struct imx_imx_fb_data imx27_imx_fb_data; |
@@ -50,7 +50,7 @@ extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[]; | |||
50 | extern const struct imx_mx2_camera_data imx27_mx2_camera_data; | 50 | extern const struct imx_mx2_camera_data imx27_mx2_camera_data; |
51 | #define imx27_add_mx2_camera(pdata) \ | 51 | #define imx27_add_mx2_camera(pdata) \ |
52 | imx_add_mx2_camera(&imx27_mx2_camera_data, pdata) | 52 | imx_add_mx2_camera(&imx27_mx2_camera_data, pdata) |
53 | #define imx27_add_mx2_emmaprp(pdata) \ | 53 | #define imx27_add_mx2_emmaprp() \ |
54 | imx_add_mx2_emmaprp(&imx27_mx2_camera_data) | 54 | imx_add_mx2_emmaprp(&imx27_mx2_camera_data) |
55 | 55 | ||
56 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data; | 56 | extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data; |
@@ -69,7 +69,7 @@ extern const struct imx_mxc_nand_data imx27_mxc_nand_data; | |||
69 | imx_add_mxc_nand(&imx27_mxc_nand_data, pdata) | 69 | imx_add_mxc_nand(&imx27_mxc_nand_data, pdata) |
70 | 70 | ||
71 | extern const struct imx_mxc_w1_data imx27_mxc_w1_data; | 71 | extern const struct imx_mxc_w1_data imx27_mxc_w1_data; |
72 | #define imx27_add_mxc_w1(pdata) \ | 72 | #define imx27_add_mxc_w1() \ |
73 | imx_add_mxc_w1(&imx27_mxc_w1_data) | 73 | imx_add_mxc_w1(&imx27_mxc_w1_data) |
74 | 74 | ||
75 | extern const struct imx_spi_imx_data imx27_cspi_data[]; | 75 | extern const struct imx_spi_imx_data imx27_cspi_data[]; |
diff --git a/arch/arm/mach-imx/devices-imx31.h b/arch/arm/mach-imx/devices-imx31.h index 488e241a6db6..13f533d0aa5c 100644 --- a/arch/arm/mach-imx/devices-imx31.h +++ b/arch/arm/mach-imx/devices-imx31.h | |||
@@ -14,7 +14,7 @@ extern const struct imx_fsl_usb2_udc_data imx31_fsl_usb2_udc_data; | |||
14 | imx_add_fsl_usb2_udc(&imx31_fsl_usb2_udc_data, pdata) | 14 | imx_add_fsl_usb2_udc(&imx31_fsl_usb2_udc_data, pdata) |
15 | 15 | ||
16 | extern const struct imx_imx2_wdt_data imx31_imx2_wdt_data; | 16 | extern const struct imx_imx2_wdt_data imx31_imx2_wdt_data; |
17 | #define imx31_add_imx2_wdt(pdata) \ | 17 | #define imx31_add_imx2_wdt() \ |
18 | imx_add_imx2_wdt(&imx31_imx2_wdt_data) | 18 | imx_add_imx2_wdt(&imx31_imx2_wdt_data) |
19 | 19 | ||
20 | extern const struct imx_imx_i2c_data imx31_imx_i2c_data[]; | 20 | extern const struct imx_imx_i2c_data imx31_imx_i2c_data[]; |
@@ -65,11 +65,11 @@ extern const struct imx_mxc_nand_data imx31_mxc_nand_data; | |||
65 | imx_add_mxc_nand(&imx31_mxc_nand_data, pdata) | 65 | imx_add_mxc_nand(&imx31_mxc_nand_data, pdata) |
66 | 66 | ||
67 | extern const struct imx_mxc_rtc_data imx31_mxc_rtc_data; | 67 | extern const struct imx_mxc_rtc_data imx31_mxc_rtc_data; |
68 | #define imx31_add_mxc_rtc(pdata) \ | 68 | #define imx31_add_mxc_rtc() \ |
69 | imx_add_mxc_rtc(&imx31_mxc_rtc_data) | 69 | imx_add_mxc_rtc(&imx31_mxc_rtc_data) |
70 | 70 | ||
71 | extern const struct imx_mxc_w1_data imx31_mxc_w1_data; | 71 | extern const struct imx_mxc_w1_data imx31_mxc_w1_data; |
72 | #define imx31_add_mxc_w1(pdata) \ | 72 | #define imx31_add_mxc_w1() \ |
73 | imx_add_mxc_w1(&imx31_mxc_w1_data) | 73 | imx_add_mxc_w1(&imx31_mxc_w1_data) |
74 | 74 | ||
75 | extern const struct imx_spi_imx_data imx31_cspi_data[]; | 75 | extern const struct imx_spi_imx_data imx31_cspi_data[]; |
diff --git a/arch/arm/mach-imx/devices-imx35.h b/arch/arm/mach-imx/devices-imx35.h index 7b99ef0bb501..27245ce9cab2 100644 --- a/arch/arm/mach-imx/devices-imx35.h +++ b/arch/arm/mach-imx/devices-imx35.h | |||
@@ -24,7 +24,7 @@ extern const struct imx_flexcan_data imx35_flexcan_data[]; | |||
24 | #define imx35_add_flexcan1(pdata) imx35_add_flexcan(1, pdata) | 24 | #define imx35_add_flexcan1(pdata) imx35_add_flexcan(1, pdata) |
25 | 25 | ||
26 | extern const struct imx_imx2_wdt_data imx35_imx2_wdt_data; | 26 | extern const struct imx_imx2_wdt_data imx35_imx2_wdt_data; |
27 | #define imx35_add_imx2_wdt(pdata) \ | 27 | #define imx35_add_imx2_wdt() \ |
28 | imx_add_imx2_wdt(&imx35_imx2_wdt_data) | 28 | imx_add_imx2_wdt(&imx35_imx2_wdt_data) |
29 | 29 | ||
30 | extern const struct imx_imx_i2c_data imx35_imx_i2c_data[]; | 30 | extern const struct imx_imx_i2c_data imx35_imx_i2c_data[]; |
@@ -69,7 +69,7 @@ extern const struct imx_mxc_nand_data imx35_mxc_nand_data; | |||
69 | imx_add_mxc_nand(&imx35_mxc_nand_data, pdata) | 69 | imx_add_mxc_nand(&imx35_mxc_nand_data, pdata) |
70 | 70 | ||
71 | extern const struct imx_mxc_w1_data imx35_mxc_w1_data; | 71 | extern const struct imx_mxc_w1_data imx35_mxc_w1_data; |
72 | #define imx35_add_mxc_w1(pdata) \ | 72 | #define imx35_add_mxc_w1() \ |
73 | imx_add_mxc_w1(&imx35_mxc_w1_data) | 73 | imx_add_mxc_w1(&imx35_mxc_w1_data) |
74 | 74 | ||
75 | extern const struct imx_sdhci_esdhc_imx_data imx35_sdhci_esdhc_imx_data[]; | 75 | extern const struct imx_sdhci_esdhc_imx_data imx35_sdhci_esdhc_imx_data[]; |
diff --git a/arch/arm/mach-imx/devices-imx51.h b/arch/arm/mach-imx/devices-imx51.h index af488bc0e225..9f1718725195 100644 --- a/arch/arm/mach-imx/devices-imx51.h +++ b/arch/arm/mach-imx/devices-imx51.h | |||
@@ -55,7 +55,7 @@ extern const struct imx_spi_imx_data imx51_ecspi_data[]; | |||
55 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) | 55 | imx_add_spi_imx(&imx51_ecspi_data[id], pdata) |
56 | 56 | ||
57 | extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[]; | 57 | extern const struct imx_imx2_wdt_data imx51_imx2_wdt_data[]; |
58 | #define imx51_add_imx2_wdt(id, pdata) \ | 58 | #define imx51_add_imx2_wdt(id) \ |
59 | imx_add_imx2_wdt(&imx51_imx2_wdt_data[id]) | 59 | imx_add_imx2_wdt(&imx51_imx2_wdt_data[id]) |
60 | 60 | ||
61 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[]; | 61 | extern const struct imx_mxc_pwm_data imx51_mxc_pwm_data[]; |
diff --git a/arch/arm/mach-imx/devices-imx53.h b/arch/arm/mach-imx/devices-imx53.h index 6e1e5d1f8c3a..77e0db96c448 100644 --- a/arch/arm/mach-imx/devices-imx53.h +++ b/arch/arm/mach-imx/devices-imx53.h | |||
@@ -30,7 +30,7 @@ extern const struct imx_spi_imx_data imx53_ecspi_data[]; | |||
30 | imx_add_spi_imx(&imx53_ecspi_data[id], pdata) | 30 | imx_add_spi_imx(&imx53_ecspi_data[id], pdata) |
31 | 31 | ||
32 | extern const struct imx_imx2_wdt_data imx53_imx2_wdt_data[]; | 32 | extern const struct imx_imx2_wdt_data imx53_imx2_wdt_data[]; |
33 | #define imx53_add_imx2_wdt(id, pdata) \ | 33 | #define imx53_add_imx2_wdt(id) \ |
34 | imx_add_imx2_wdt(&imx53_imx2_wdt_data[id]) | 34 | imx_add_imx2_wdt(&imx53_imx2_wdt_data[id]) |
35 | 35 | ||
36 | extern const struct imx_imx_ssi_data imx53_imx_ssi_data[]; | 36 | extern const struct imx_imx_ssi_data imx53_imx_ssi_data[]; |
diff --git a/arch/arm/mach-imx/imx27-dt.c b/arch/arm/mach-imx/imx27-dt.c index eee0cc8d92a4..52efe4d5149b 100644 --- a/arch/arm/mach-imx/imx27-dt.c +++ b/arch/arm/mach-imx/imx27-dt.c | |||
@@ -75,7 +75,7 @@ static struct sys_timer imx27_timer = { | |||
75 | .init = imx27_timer_init, | 75 | .init = imx27_timer_init, |
76 | }; | 76 | }; |
77 | 77 | ||
78 | static const char *imx27_dt_board_compat[] __initdata = { | 78 | static const char * const imx27_dt_board_compat[] __initconst = { |
79 | "fsl,imx27", | 79 | "fsl,imx27", |
80 | NULL | 80 | NULL |
81 | }; | 81 | }; |
diff --git a/arch/arm/mach-imx/mach-cpuimx27.c b/arch/arm/mach-imx/mach-cpuimx27.c index d085aea08709..9a3b06e688c5 100644 --- a/arch/arm/mach-imx/mach-cpuimx27.c +++ b/arch/arm/mach-imx/mach-cpuimx27.c | |||
@@ -233,18 +233,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
233 | .phy_mode = FSL_USB2_PHY_ULPI, | 233 | .phy_mode = FSL_USB2_PHY_ULPI, |
234 | }; | 234 | }; |
235 | 235 | ||
236 | static int otg_mode_host; | 236 | static bool otg_mode_host __initdata; |
237 | 237 | ||
238 | static int __init eukrea_cpuimx27_otg_mode(char *options) | 238 | static int __init eukrea_cpuimx27_otg_mode(char *options) |
239 | { | 239 | { |
240 | if (!strcmp(options, "host")) | 240 | if (!strcmp(options, "host")) |
241 | otg_mode_host = 1; | 241 | otg_mode_host = true; |
242 | else if (!strcmp(options, "device")) | 242 | else if (!strcmp(options, "device")) |
243 | otg_mode_host = 0; | 243 | otg_mode_host = false; |
244 | else | 244 | else |
245 | pr_info("otg_mode neither \"host\" nor \"device\". " | 245 | pr_info("otg_mode neither \"host\" nor \"device\". " |
246 | "Defaulting to device\n"); | 246 | "Defaulting to device\n"); |
247 | return 0; | 247 | return 1; |
248 | } | 248 | } |
249 | __setup("otg_mode=", eukrea_cpuimx27_otg_mode); | 249 | __setup("otg_mode=", eukrea_cpuimx27_otg_mode); |
250 | 250 | ||
@@ -266,8 +266,8 @@ static void __init eukrea_cpuimx27_init(void) | |||
266 | 266 | ||
267 | imx27_add_fec(NULL); | 267 | imx27_add_fec(NULL); |
268 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 268 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
269 | imx27_add_imx2_wdt(NULL); | 269 | imx27_add_imx2_wdt(); |
270 | imx27_add_mxc_w1(NULL); | 270 | imx27_add_mxc_w1(); |
271 | 271 | ||
272 | #if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2) | 272 | #if defined(CONFIG_MACH_EUKREA_CPUIMX27_USESDHC2) |
273 | /* SDHC2 can be used for Wifi */ | 273 | /* SDHC2 can be used for Wifi */ |
diff --git a/arch/arm/mach-imx/mach-cpuimx35.c b/arch/arm/mach-imx/mach-cpuimx35.c index 6450303f1a7a..1634e54ffed5 100644 --- a/arch/arm/mach-imx/mach-cpuimx35.c +++ b/arch/arm/mach-imx/mach-cpuimx35.c | |||
@@ -141,18 +141,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
141 | .workaround = FLS_USB2_WORKAROUND_ENGCM09152, | 141 | .workaround = FLS_USB2_WORKAROUND_ENGCM09152, |
142 | }; | 142 | }; |
143 | 143 | ||
144 | static int otg_mode_host; | 144 | static bool otg_mode_host __initdata; |
145 | 145 | ||
146 | static int __init eukrea_cpuimx35_otg_mode(char *options) | 146 | static int __init eukrea_cpuimx35_otg_mode(char *options) |
147 | { | 147 | { |
148 | if (!strcmp(options, "host")) | 148 | if (!strcmp(options, "host")) |
149 | otg_mode_host = 1; | 149 | otg_mode_host = true; |
150 | else if (!strcmp(options, "device")) | 150 | else if (!strcmp(options, "device")) |
151 | otg_mode_host = 0; | 151 | otg_mode_host = false; |
152 | else | 152 | else |
153 | pr_info("otg_mode neither \"host\" nor \"device\". " | 153 | pr_info("otg_mode neither \"host\" nor \"device\". " |
154 | "Defaulting to device\n"); | 154 | "Defaulting to device\n"); |
155 | return 0; | 155 | return 1; |
156 | } | 156 | } |
157 | __setup("otg_mode=", eukrea_cpuimx35_otg_mode); | 157 | __setup("otg_mode=", eukrea_cpuimx35_otg_mode); |
158 | 158 | ||
@@ -167,7 +167,7 @@ static void __init eukrea_cpuimx35_init(void) | |||
167 | ARRAY_SIZE(eukrea_cpuimx35_pads)); | 167 | ARRAY_SIZE(eukrea_cpuimx35_pads)); |
168 | 168 | ||
169 | imx35_add_fec(NULL); | 169 | imx35_add_fec(NULL); |
170 | imx35_add_imx2_wdt(NULL); | 170 | imx35_add_imx2_wdt(); |
171 | 171 | ||
172 | imx35_add_imx_uart0(&uart_pdata); | 172 | imx35_add_imx_uart0(&uart_pdata); |
173 | imx35_add_mxc_nand(&eukrea_cpuimx35_nand_board_info); | 173 | imx35_add_mxc_nand(&eukrea_cpuimx35_nand_board_info); |
diff --git a/arch/arm/mach-imx/mach-cpuimx51sd.c b/arch/arm/mach-imx/mach-cpuimx51sd.c index 1e09de50cbcd..e78b40b41462 100644 --- a/arch/arm/mach-imx/mach-cpuimx51sd.c +++ b/arch/arm/mach-imx/mach-cpuimx51sd.c | |||
@@ -217,18 +217,18 @@ static const struct mxc_usbh_platform_data usbh1_config __initconst = { | |||
217 | .portsc = MXC_EHCI_MODE_ULPI, | 217 | .portsc = MXC_EHCI_MODE_ULPI, |
218 | }; | 218 | }; |
219 | 219 | ||
220 | static int otg_mode_host; | 220 | static bool otg_mode_host __initdata; |
221 | 221 | ||
222 | static int __init eukrea_cpuimx51sd_otg_mode(char *options) | 222 | static int __init eukrea_cpuimx51sd_otg_mode(char *options) |
223 | { | 223 | { |
224 | if (!strcmp(options, "host")) | 224 | if (!strcmp(options, "host")) |
225 | otg_mode_host = 1; | 225 | otg_mode_host = true; |
226 | else if (!strcmp(options, "device")) | 226 | else if (!strcmp(options, "device")) |
227 | otg_mode_host = 0; | 227 | otg_mode_host = false; |
228 | else | 228 | else |
229 | pr_info("otg_mode neither \"host\" nor \"device\". " | 229 | pr_info("otg_mode neither \"host\" nor \"device\". " |
230 | "Defaulting to device\n"); | 230 | "Defaulting to device\n"); |
231 | return 0; | 231 | return 1; |
232 | } | 232 | } |
233 | __setup("otg_mode=", eukrea_cpuimx51sd_otg_mode); | 233 | __setup("otg_mode=", eukrea_cpuimx51sd_otg_mode); |
234 | 234 | ||
@@ -292,7 +292,7 @@ static void __init eukrea_cpuimx51sd_init(void) | |||
292 | 292 | ||
293 | imx51_add_imx_uart(0, &uart_pdata); | 293 | imx51_add_imx_uart(0, &uart_pdata); |
294 | imx51_add_mxc_nand(&eukrea_cpuimx51sd_nand_board_info); | 294 | imx51_add_mxc_nand(&eukrea_cpuimx51sd_nand_board_info); |
295 | imx51_add_imx2_wdt(0, NULL); | 295 | imx51_add_imx2_wdt(0); |
296 | 296 | ||
297 | gpio_request(ETH_RST, "eth_rst"); | 297 | gpio_request(ETH_RST, "eth_rst"); |
298 | gpio_set_value(ETH_RST, 1); | 298 | gpio_set_value(ETH_RST, 1); |
diff --git a/arch/arm/mach-imx/mach-eukrea_cpuimx25.c b/arch/arm/mach-imx/mach-eukrea_cpuimx25.c index d1e04e676e33..017bbb70ea41 100644 --- a/arch/arm/mach-imx/mach-eukrea_cpuimx25.c +++ b/arch/arm/mach-imx/mach-eukrea_cpuimx25.c | |||
@@ -109,18 +109,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
109 | .workaround = FLS_USB2_WORKAROUND_ENGCM09152, | 109 | .workaround = FLS_USB2_WORKAROUND_ENGCM09152, |
110 | }; | 110 | }; |
111 | 111 | ||
112 | static int otg_mode_host; | 112 | static bool otg_mode_host __initdata; |
113 | 113 | ||
114 | static int __init eukrea_cpuimx25_otg_mode(char *options) | 114 | static int __init eukrea_cpuimx25_otg_mode(char *options) |
115 | { | 115 | { |
116 | if (!strcmp(options, "host")) | 116 | if (!strcmp(options, "host")) |
117 | otg_mode_host = 1; | 117 | otg_mode_host = true; |
118 | else if (!strcmp(options, "device")) | 118 | else if (!strcmp(options, "device")) |
119 | otg_mode_host = 0; | 119 | otg_mode_host = false; |
120 | else | 120 | else |
121 | pr_info("otg_mode neither \"host\" nor \"device\". " | 121 | pr_info("otg_mode neither \"host\" nor \"device\". " |
122 | "Defaulting to device\n"); | 122 | "Defaulting to device\n"); |
123 | return 0; | 123 | return 1; |
124 | } | 124 | } |
125 | __setup("otg_mode=", eukrea_cpuimx25_otg_mode); | 125 | __setup("otg_mode=", eukrea_cpuimx25_otg_mode); |
126 | 126 | ||
@@ -134,9 +134,9 @@ static void __init eukrea_cpuimx25_init(void) | |||
134 | 134 | ||
135 | imx25_add_imx_uart0(&uart_pdata); | 135 | imx25_add_imx_uart0(&uart_pdata); |
136 | imx25_add_mxc_nand(&eukrea_cpuimx25_nand_board_info); | 136 | imx25_add_mxc_nand(&eukrea_cpuimx25_nand_board_info); |
137 | imx25_add_imxdi_rtc(NULL); | 137 | imx25_add_imxdi_rtc(); |
138 | imx25_add_fec(&mx25_fec_pdata); | 138 | imx25_add_fec(&mx25_fec_pdata); |
139 | imx25_add_imx2_wdt(NULL); | 139 | imx25_add_imx2_wdt(); |
140 | 140 | ||
141 | i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices, | 141 | i2c_register_board_info(0, eukrea_cpuimx25_i2c_devices, |
142 | ARRAY_SIZE(eukrea_cpuimx25_i2c_devices)); | 142 | ARRAY_SIZE(eukrea_cpuimx25_i2c_devices)); |
diff --git a/arch/arm/mach-imx/mach-imx27ipcam.c b/arch/arm/mach-imx/mach-imx27ipcam.c index c9d350c5dcc8..7381387a8905 100644 --- a/arch/arm/mach-imx/mach-imx27ipcam.c +++ b/arch/arm/mach-imx/mach-imx27ipcam.c | |||
@@ -57,7 +57,7 @@ static void __init mx27ipcam_init(void) | |||
57 | 57 | ||
58 | imx27_add_imx_uart0(NULL); | 58 | imx27_add_imx_uart0(NULL); |
59 | imx27_add_fec(NULL); | 59 | imx27_add_fec(NULL); |
60 | imx27_add_imx2_wdt(NULL); | 60 | imx27_add_imx2_wdt(); |
61 | } | 61 | } |
62 | 62 | ||
63 | static void __init mx27ipcam_timer_init(void) | 63 | static void __init mx27ipcam_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-mx25_3ds.c b/arch/arm/mach-imx/mach-mx25_3ds.c index f26734298aa6..ce247fd1269a 100644 --- a/arch/arm/mach-imx/mach-mx25_3ds.c +++ b/arch/arm/mach-imx/mach-mx25_3ds.c | |||
@@ -237,9 +237,9 @@ static void __init mx25pdk_init(void) | |||
237 | imx25_add_fsl_usb2_udc(&otg_device_pdata); | 237 | imx25_add_fsl_usb2_udc(&otg_device_pdata); |
238 | imx25_add_mxc_ehci_hs(&usbh2_pdata); | 238 | imx25_add_mxc_ehci_hs(&usbh2_pdata); |
239 | imx25_add_mxc_nand(&mx25pdk_nand_board_info); | 239 | imx25_add_mxc_nand(&mx25pdk_nand_board_info); |
240 | imx25_add_imxdi_rtc(NULL); | 240 | imx25_add_imxdi_rtc(); |
241 | imx25_add_imx_fb(&mx25pdk_fb_pdata); | 241 | imx25_add_imx_fb(&mx25pdk_fb_pdata); |
242 | imx25_add_imx2_wdt(NULL); | 242 | imx25_add_imx2_wdt(); |
243 | 243 | ||
244 | mx25pdk_fec_reset(); | 244 | mx25pdk_fec_reset(); |
245 | imx25_add_fec(&mx25_fec_pdata); | 245 | imx25_add_fec(&mx25_fec_pdata); |
diff --git a/arch/arm/mach-imx/mach-mx27_3ds.c b/arch/arm/mach-imx/mach-mx27_3ds.c index c6d385c52257..ce9a5c26290c 100644 --- a/arch/arm/mach-imx/mach-mx27_3ds.c +++ b/arch/arm/mach-imx/mach-mx27_3ds.c | |||
@@ -241,18 +241,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
241 | .phy_mode = FSL_USB2_PHY_ULPI, | 241 | .phy_mode = FSL_USB2_PHY_ULPI, |
242 | }; | 242 | }; |
243 | 243 | ||
244 | static int otg_mode_host; | 244 | static bool otg_mode_host __initdata; |
245 | 245 | ||
246 | static int __init mx27_3ds_otg_mode(char *options) | 246 | static int __init mx27_3ds_otg_mode(char *options) |
247 | { | 247 | { |
248 | if (!strcmp(options, "host")) | 248 | if (!strcmp(options, "host")) |
249 | otg_mode_host = 1; | 249 | otg_mode_host = true; |
250 | else if (!strcmp(options, "device")) | 250 | else if (!strcmp(options, "device")) |
251 | otg_mode_host = 0; | 251 | otg_mode_host = false; |
252 | else | 252 | else |
253 | pr_info("otg_mode neither \"host\" nor \"device\". " | 253 | pr_info("otg_mode neither \"host\" nor \"device\". " |
254 | "Defaulting to device\n"); | 254 | "Defaulting to device\n"); |
255 | return 0; | 255 | return 1; |
256 | } | 256 | } |
257 | __setup("otg_mode=", mx27_3ds_otg_mode); | 257 | __setup("otg_mode=", mx27_3ds_otg_mode); |
258 | 258 | ||
@@ -480,7 +480,7 @@ static void __init mx27pdk_init(void) | |||
480 | imx27_add_fec(NULL); | 480 | imx27_add_fec(NULL); |
481 | imx27_add_imx_keypad(&mx27_3ds_keymap_data); | 481 | imx27_add_imx_keypad(&mx27_3ds_keymap_data); |
482 | imx27_add_mxc_mmc(0, &sdhc1_pdata); | 482 | imx27_add_mxc_mmc(0, &sdhc1_pdata); |
483 | imx27_add_imx2_wdt(NULL); | 483 | imx27_add_imx2_wdt(); |
484 | otg_phy_init(); | 484 | otg_phy_init(); |
485 | 485 | ||
486 | if (otg_mode_host) { | 486 | if (otg_mode_host) { |
diff --git a/arch/arm/mach-imx/mach-mx27ads.c b/arch/arm/mach-imx/mach-mx27ads.c index 0228d2e07fe0..7936bb32264d 100644 --- a/arch/arm/mach-imx/mach-mx27ads.c +++ b/arch/arm/mach-imx/mach-mx27ads.c | |||
@@ -310,7 +310,7 @@ static void __init mx27ads_board_init(void) | |||
310 | 310 | ||
311 | imx27_add_fec(NULL); | 311 | imx27_add_fec(NULL); |
312 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 312 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
313 | imx27_add_mxc_w1(NULL); | 313 | imx27_add_mxc_w1(); |
314 | } | 314 | } |
315 | 315 | ||
316 | static void __init mx27ads_timer_init(void) | 316 | static void __init mx27ads_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-mx31_3ds.c b/arch/arm/mach-imx/mach-mx31_3ds.c index 4eafdf275ea2..928e1dcbc6a7 100644 --- a/arch/arm/mach-imx/mach-mx31_3ds.c +++ b/arch/arm/mach-imx/mach-mx31_3ds.c | |||
@@ -671,18 +671,18 @@ static const struct fsl_usb2_platform_data usbotg_pdata __initconst = { | |||
671 | .phy_mode = FSL_USB2_PHY_ULPI, | 671 | .phy_mode = FSL_USB2_PHY_ULPI, |
672 | }; | 672 | }; |
673 | 673 | ||
674 | static int otg_mode_host; | 674 | static bool otg_mode_host __initdata; |
675 | 675 | ||
676 | static int __init mx31_3ds_otg_mode(char *options) | 676 | static int __init mx31_3ds_otg_mode(char *options) |
677 | { | 677 | { |
678 | if (!strcmp(options, "host")) | 678 | if (!strcmp(options, "host")) |
679 | otg_mode_host = 1; | 679 | otg_mode_host = true; |
680 | else if (!strcmp(options, "device")) | 680 | else if (!strcmp(options, "device")) |
681 | otg_mode_host = 0; | 681 | otg_mode_host = false; |
682 | else | 682 | else |
683 | pr_info("otg_mode neither \"host\" nor \"device\". " | 683 | pr_info("otg_mode neither \"host\" nor \"device\". " |
684 | "Defaulting to device\n"); | 684 | "Defaulting to device\n"); |
685 | return 0; | 685 | return 1; |
686 | } | 686 | } |
687 | __setup("otg_mode=", mx31_3ds_otg_mode); | 687 | __setup("otg_mode=", mx31_3ds_otg_mode); |
688 | 688 | ||
@@ -739,7 +739,7 @@ static void __init mx31_3ds_init(void) | |||
739 | if (mxc_expio_init(MX31_CS5_BASE_ADDR, EXPIO_PARENT_INT)) | 739 | if (mxc_expio_init(MX31_CS5_BASE_ADDR, EXPIO_PARENT_INT)) |
740 | printk(KERN_WARNING "Init of the debug board failed, all " | 740 | printk(KERN_WARNING "Init of the debug board failed, all " |
741 | "devices on the debug board are unusable.\n"); | 741 | "devices on the debug board are unusable.\n"); |
742 | imx31_add_imx2_wdt(NULL); | 742 | imx31_add_imx2_wdt(); |
743 | imx31_add_imx_i2c0(&mx31_3ds_i2c0_data); | 743 | imx31_add_imx_i2c0(&mx31_3ds_i2c0_data); |
744 | imx31_add_mxc_mmc(0, &sdhc1_pdata); | 744 | imx31_add_mxc_mmc(0, &sdhc1_pdata); |
745 | 745 | ||
diff --git a/arch/arm/mach-imx/mach-mx31moboard.c b/arch/arm/mach-imx/mach-mx31moboard.c index 016791f038b0..63e84e67b990 100644 --- a/arch/arm/mach-imx/mach-mx31moboard.c +++ b/arch/arm/mach-imx/mach-mx31moboard.c | |||
@@ -544,7 +544,7 @@ static void __init mx31moboard_init(void) | |||
544 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 544 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
545 | gpio_led_register_device(-1, &mx31moboard_led_pdata); | 545 | gpio_led_register_device(-1, &mx31moboard_led_pdata); |
546 | 546 | ||
547 | imx31_add_imx2_wdt(NULL); | 547 | imx31_add_imx2_wdt(); |
548 | 548 | ||
549 | imx31_add_imx_uart0(&uart0_pdata); | 549 | imx31_add_imx_uart0(&uart0_pdata); |
550 | imx31_add_imx_uart4(&uart4_pdata); | 550 | imx31_add_imx_uart4(&uart4_pdata); |
diff --git a/arch/arm/mach-imx/mach-mx35_3ds.c b/arch/arm/mach-imx/mach-mx35_3ds.c index 28aa19476de7..6bff87907317 100644 --- a/arch/arm/mach-imx/mach-mx35_3ds.c +++ b/arch/arm/mach-imx/mach-mx35_3ds.c | |||
@@ -540,18 +540,18 @@ static const struct mxc_usbh_platform_data usb_host_pdata __initconst = { | |||
540 | .portsc = MXC_EHCI_MODE_SERIAL, | 540 | .portsc = MXC_EHCI_MODE_SERIAL, |
541 | }; | 541 | }; |
542 | 542 | ||
543 | static int otg_mode_host; | 543 | static bool otg_mode_host __initdata; |
544 | 544 | ||
545 | static int __init mx35_3ds_otg_mode(char *options) | 545 | static int __init mx35_3ds_otg_mode(char *options) |
546 | { | 546 | { |
547 | if (!strcmp(options, "host")) | 547 | if (!strcmp(options, "host")) |
548 | otg_mode_host = 1; | 548 | otg_mode_host = true; |
549 | else if (!strcmp(options, "device")) | 549 | else if (!strcmp(options, "device")) |
550 | otg_mode_host = 0; | 550 | otg_mode_host = false; |
551 | else | 551 | else |
552 | pr_info("otg_mode neither \"host\" nor \"device\". " | 552 | pr_info("otg_mode neither \"host\" nor \"device\". " |
553 | "Defaulting to device\n"); | 553 | "Defaulting to device\n"); |
554 | return 0; | 554 | return 1; |
555 | } | 555 | } |
556 | __setup("otg_mode=", mx35_3ds_otg_mode); | 556 | __setup("otg_mode=", mx35_3ds_otg_mode); |
557 | 557 | ||
@@ -571,7 +571,7 @@ static void __init mx35_3ds_init(void) | |||
571 | mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads, ARRAY_SIZE(mx35pdk_pads)); | 571 | mxc_iomux_v3_setup_multiple_pads(mx35pdk_pads, ARRAY_SIZE(mx35pdk_pads)); |
572 | 572 | ||
573 | imx35_add_fec(NULL); | 573 | imx35_add_fec(NULL); |
574 | imx35_add_imx2_wdt(NULL); | 574 | imx35_add_imx2_wdt(); |
575 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 575 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
576 | 576 | ||
577 | imx35_add_imx_uart0(&uart_pdata); | 577 | imx35_add_imx_uart0(&uart_pdata); |
diff --git a/arch/arm/mach-imx/mach-mx51_3ds.c b/arch/arm/mach-imx/mach-mx51_3ds.c index 3c5b163923f6..2edb563b968d 100644 --- a/arch/arm/mach-imx/mach-mx51_3ds.c +++ b/arch/arm/mach-imx/mach-mx51_3ds.c | |||
@@ -154,7 +154,7 @@ static void __init mx51_3ds_init(void) | |||
154 | 154 | ||
155 | imx51_add_sdhci_esdhc_imx(0, NULL); | 155 | imx51_add_sdhci_esdhc_imx(0, NULL); |
156 | imx51_add_imx_keypad(&mx51_3ds_map_data); | 156 | imx51_add_imx_keypad(&mx51_3ds_map_data); |
157 | imx51_add_imx2_wdt(0, NULL); | 157 | imx51_add_imx2_wdt(0); |
158 | } | 158 | } |
159 | 159 | ||
160 | static void __init mx51_3ds_timer_init(void) | 160 | static void __init mx51_3ds_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-mx51_babbage.c b/arch/arm/mach-imx/mach-mx51_babbage.c index dde397014d4b..7b31cbde8775 100644 --- a/arch/arm/mach-imx/mach-mx51_babbage.c +++ b/arch/arm/mach-imx/mach-mx51_babbage.c | |||
@@ -307,18 +307,18 @@ static const struct mxc_usbh_platform_data usbh1_config __initconst = { | |||
307 | .portsc = MXC_EHCI_MODE_ULPI, | 307 | .portsc = MXC_EHCI_MODE_ULPI, |
308 | }; | 308 | }; |
309 | 309 | ||
310 | static int otg_mode_host; | 310 | static bool otg_mode_host __initdata; |
311 | 311 | ||
312 | static int __init babbage_otg_mode(char *options) | 312 | static int __init babbage_otg_mode(char *options) |
313 | { | 313 | { |
314 | if (!strcmp(options, "host")) | 314 | if (!strcmp(options, "host")) |
315 | otg_mode_host = 1; | 315 | otg_mode_host = true; |
316 | else if (!strcmp(options, "device")) | 316 | else if (!strcmp(options, "device")) |
317 | otg_mode_host = 0; | 317 | otg_mode_host = false; |
318 | else | 318 | else |
319 | pr_info("otg_mode neither \"host\" nor \"device\". " | 319 | pr_info("otg_mode neither \"host\" nor \"device\". " |
320 | "Defaulting to device\n"); | 320 | "Defaulting to device\n"); |
321 | return 0; | 321 | return 1; |
322 | } | 322 | } |
323 | __setup("otg_mode=", babbage_otg_mode); | 323 | __setup("otg_mode=", babbage_otg_mode); |
324 | 324 | ||
@@ -411,7 +411,7 @@ static void __init mx51_babbage_init(void) | |||
411 | spi_register_board_info(mx51_babbage_spi_board_info, | 411 | spi_register_board_info(mx51_babbage_spi_board_info, |
412 | ARRAY_SIZE(mx51_babbage_spi_board_info)); | 412 | ARRAY_SIZE(mx51_babbage_spi_board_info)); |
413 | imx51_add_ecspi(0, &mx51_babbage_spi_pdata); | 413 | imx51_add_ecspi(0, &mx51_babbage_spi_pdata); |
414 | imx51_add_imx2_wdt(0, NULL); | 414 | imx51_add_imx2_wdt(0); |
415 | } | 415 | } |
416 | 416 | ||
417 | static void __init mx51_babbage_timer_init(void) | 417 | static void __init mx51_babbage_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-mx53_ard.c b/arch/arm/mach-imx/mach-mx53_ard.c index 05641980dc5e..4a7593a953e2 100644 --- a/arch/arm/mach-imx/mach-mx53_ard.c +++ b/arch/arm/mach-imx/mach-mx53_ard.c | |||
@@ -243,7 +243,7 @@ static void __init mx53_ard_board_init(void) | |||
243 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 243 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
244 | 244 | ||
245 | imx53_add_sdhci_esdhc_imx(0, &mx53_ard_sd1_data); | 245 | imx53_add_sdhci_esdhc_imx(0, &mx53_ard_sd1_data); |
246 | imx53_add_imx2_wdt(0, NULL); | 246 | imx53_add_imx2_wdt(0); |
247 | imx53_add_imx_i2c(1, &mx53_ard_i2c2_data); | 247 | imx53_add_imx_i2c(1, &mx53_ard_i2c2_data); |
248 | imx53_add_imx_i2c(2, &mx53_ard_i2c3_data); | 248 | imx53_add_imx_i2c(2, &mx53_ard_i2c3_data); |
249 | imx_add_gpio_keys(&ard_button_data); | 249 | imx_add_gpio_keys(&ard_button_data); |
diff --git a/arch/arm/mach-imx/mach-mx53_evk.c b/arch/arm/mach-imx/mach-mx53_evk.c index 5a72188b9cdb..a1060b26fb23 100644 --- a/arch/arm/mach-imx/mach-mx53_evk.c +++ b/arch/arm/mach-imx/mach-mx53_evk.c | |||
@@ -154,7 +154,7 @@ static void __init mx53_evk_board_init(void) | |||
154 | spi_register_board_info(mx53_evk_spi_board_info, | 154 | spi_register_board_info(mx53_evk_spi_board_info, |
155 | ARRAY_SIZE(mx53_evk_spi_board_info)); | 155 | ARRAY_SIZE(mx53_evk_spi_board_info)); |
156 | imx53_add_ecspi(0, &mx53_evk_spi_data); | 156 | imx53_add_ecspi(0, &mx53_evk_spi_data); |
157 | imx53_add_imx2_wdt(0, NULL); | 157 | imx53_add_imx2_wdt(0); |
158 | gpio_led_register_device(-1, &mx53evk_leds_data); | 158 | gpio_led_register_device(-1, &mx53evk_leds_data); |
159 | } | 159 | } |
160 | 160 | ||
diff --git a/arch/arm/mach-imx/mach-mx53_loco.c b/arch/arm/mach-imx/mach-mx53_loco.c index 37f67cac15a4..388c415d6b62 100644 --- a/arch/arm/mach-imx/mach-mx53_loco.c +++ b/arch/arm/mach-imx/mach-mx53_loco.c | |||
@@ -283,7 +283,7 @@ static void __init mx53_loco_board_init(void) | |||
283 | imx53_add_imx_uart(0, NULL); | 283 | imx53_add_imx_uart(0, NULL); |
284 | mx53_loco_fec_reset(); | 284 | mx53_loco_fec_reset(); |
285 | imx53_add_fec(&mx53_loco_fec_data); | 285 | imx53_add_fec(&mx53_loco_fec_data); |
286 | imx53_add_imx2_wdt(0, NULL); | 286 | imx53_add_imx2_wdt(0); |
287 | 287 | ||
288 | ret = gpio_request_one(LOCO_ACCEL_EN, GPIOF_OUT_INIT_HIGH, "accel_en"); | 288 | ret = gpio_request_one(LOCO_ACCEL_EN, GPIOF_OUT_INIT_HIGH, "accel_en"); |
289 | if (ret) | 289 | if (ret) |
diff --git a/arch/arm/mach-imx/mach-mx53_smd.c b/arch/arm/mach-imx/mach-mx53_smd.c index 8e972c5c3e13..f297df7ccb39 100644 --- a/arch/arm/mach-imx/mach-mx53_smd.c +++ b/arch/arm/mach-imx/mach-mx53_smd.c | |||
@@ -138,7 +138,7 @@ static void __init mx53_smd_board_init(void) | |||
138 | mx53_smd_init_uart(); | 138 | mx53_smd_init_uart(); |
139 | mx53_smd_fec_reset(); | 139 | mx53_smd_fec_reset(); |
140 | imx53_add_fec(&mx53_smd_fec_data); | 140 | imx53_add_fec(&mx53_smd_fec_data); |
141 | imx53_add_imx2_wdt(0, NULL); | 141 | imx53_add_imx2_wdt(0); |
142 | imx53_add_imx_i2c(0, &mx53_smd_i2c_data); | 142 | imx53_add_imx_i2c(0, &mx53_smd_i2c_data); |
143 | imx53_add_sdhci_esdhc_imx(0, NULL); | 143 | imx53_add_sdhci_esdhc_imx(0, NULL); |
144 | imx53_add_sdhci_esdhc_imx(1, NULL); | 144 | imx53_add_sdhci_esdhc_imx(1, NULL); |
diff --git a/arch/arm/mach-imx/mach-pca100.c b/arch/arm/mach-imx/mach-pca100.c index 541152e450c4..d37ed25003b2 100644 --- a/arch/arm/mach-imx/mach-pca100.c +++ b/arch/arm/mach-imx/mach-pca100.c | |||
@@ -298,18 +298,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
298 | .phy_mode = FSL_USB2_PHY_ULPI, | 298 | .phy_mode = FSL_USB2_PHY_ULPI, |
299 | }; | 299 | }; |
300 | 300 | ||
301 | static int otg_mode_host; | 301 | static bool otg_mode_host __initdata; |
302 | 302 | ||
303 | static int __init pca100_otg_mode(char *options) | 303 | static int __init pca100_otg_mode(char *options) |
304 | { | 304 | { |
305 | if (!strcmp(options, "host")) | 305 | if (!strcmp(options, "host")) |
306 | otg_mode_host = 1; | 306 | otg_mode_host = true; |
307 | else if (!strcmp(options, "device")) | 307 | else if (!strcmp(options, "device")) |
308 | otg_mode_host = 0; | 308 | otg_mode_host = false; |
309 | else | 309 | else |
310 | pr_info("otg_mode neither \"host\" nor \"device\". " | 310 | pr_info("otg_mode neither \"host\" nor \"device\". " |
311 | "Defaulting to device\n"); | 311 | "Defaulting to device\n"); |
312 | return 0; | 312 | return 1; |
313 | } | 313 | } |
314 | __setup("otg_mode=", pca100_otg_mode); | 314 | __setup("otg_mode=", pca100_otg_mode); |
315 | 315 | ||
@@ -408,8 +408,8 @@ static void __init pca100_init(void) | |||
408 | imx27_add_imx_fb(&pca100_fb_data); | 408 | imx27_add_imx_fb(&pca100_fb_data); |
409 | 409 | ||
410 | imx27_add_fec(NULL); | 410 | imx27_add_fec(NULL); |
411 | imx27_add_imx2_wdt(NULL); | 411 | imx27_add_imx2_wdt(); |
412 | imx27_add_mxc_w1(NULL); | 412 | imx27_add_mxc_w1(); |
413 | } | 413 | } |
414 | 414 | ||
415 | static void __init pca100_timer_init(void) | 415 | static void __init pca100_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-pcm037.c b/arch/arm/mach-imx/mach-pcm037.c index 0a40004154f2..cd48712a6f50 100644 --- a/arch/arm/mach-imx/mach-pcm037.c +++ b/arch/arm/mach-imx/mach-pcm037.c | |||
@@ -557,18 +557,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
557 | .phy_mode = FSL_USB2_PHY_ULPI, | 557 | .phy_mode = FSL_USB2_PHY_ULPI, |
558 | }; | 558 | }; |
559 | 559 | ||
560 | static int otg_mode_host; | 560 | static bool otg_mode_host __initdata; |
561 | 561 | ||
562 | static int __init pcm037_otg_mode(char *options) | 562 | static int __init pcm037_otg_mode(char *options) |
563 | { | 563 | { |
564 | if (!strcmp(options, "host")) | 564 | if (!strcmp(options, "host")) |
565 | otg_mode_host = 1; | 565 | otg_mode_host = true; |
566 | else if (!strcmp(options, "device")) | 566 | else if (!strcmp(options, "device")) |
567 | otg_mode_host = 0; | 567 | otg_mode_host = false; |
568 | else | 568 | else |
569 | pr_info("otg_mode neither \"host\" nor \"device\". " | 569 | pr_info("otg_mode neither \"host\" nor \"device\". " |
570 | "Defaulting to device\n"); | 570 | "Defaulting to device\n"); |
571 | return 0; | 571 | return 1; |
572 | } | 572 | } |
573 | __setup("otg_mode=", pcm037_otg_mode); | 573 | __setup("otg_mode=", pcm037_otg_mode); |
574 | 574 | ||
@@ -619,13 +619,13 @@ static void __init pcm037_init(void) | |||
619 | 619 | ||
620 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 620 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
621 | 621 | ||
622 | imx31_add_imx2_wdt(NULL); | 622 | imx31_add_imx2_wdt(); |
623 | imx31_add_imx_uart0(&uart_pdata); | 623 | imx31_add_imx_uart0(&uart_pdata); |
624 | /* XXX: should't this have .flags = 0 (i.e. no RTSCTS) on PCM037_EET? */ | 624 | /* XXX: should't this have .flags = 0 (i.e. no RTSCTS) on PCM037_EET? */ |
625 | imx31_add_imx_uart1(&uart_pdata); | 625 | imx31_add_imx_uart1(&uart_pdata); |
626 | imx31_add_imx_uart2(&uart_pdata); | 626 | imx31_add_imx_uart2(&uart_pdata); |
627 | 627 | ||
628 | imx31_add_mxc_w1(NULL); | 628 | imx31_add_mxc_w1(); |
629 | 629 | ||
630 | /* LAN9217 IRQ pin */ | 630 | /* LAN9217 IRQ pin */ |
631 | ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO3_1), "lan9217-irq"); | 631 | ret = gpio_request(IOMUX_TO_GPIO(MX31_PIN_GPIO3_1), "lan9217-irq"); |
diff --git a/arch/arm/mach-imx/mach-pcm038.c b/arch/arm/mach-imx/mach-pcm038.c index 2f3debe2a113..3fbb89d74fcc 100644 --- a/arch/arm/mach-imx/mach-pcm038.c +++ b/arch/arm/mach-imx/mach-pcm038.c | |||
@@ -332,8 +332,8 @@ static void __init pcm038_init(void) | |||
332 | 332 | ||
333 | imx27_add_fec(NULL); | 333 | imx27_add_fec(NULL); |
334 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); | 334 | platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices)); |
335 | imx27_add_imx2_wdt(NULL); | 335 | imx27_add_imx2_wdt(); |
336 | imx27_add_mxc_w1(NULL); | 336 | imx27_add_mxc_w1(); |
337 | 337 | ||
338 | #ifdef CONFIG_MACH_PCM970_BASEBOARD | 338 | #ifdef CONFIG_MACH_PCM970_BASEBOARD |
339 | pcm970_baseboard_init(); | 339 | pcm970_baseboard_init(); |
diff --git a/arch/arm/mach-imx/mach-pcm043.c b/arch/arm/mach-imx/mach-pcm043.c index 73585f55cca0..1f20f222375e 100644 --- a/arch/arm/mach-imx/mach-pcm043.c +++ b/arch/arm/mach-imx/mach-pcm043.c | |||
@@ -330,18 +330,18 @@ static const struct fsl_usb2_platform_data otg_device_pdata __initconst = { | |||
330 | .phy_mode = FSL_USB2_PHY_UTMI, | 330 | .phy_mode = FSL_USB2_PHY_UTMI, |
331 | }; | 331 | }; |
332 | 332 | ||
333 | static int otg_mode_host; | 333 | static bool otg_mode_host __initdata; |
334 | 334 | ||
335 | static int __init pcm043_otg_mode(char *options) | 335 | static int __init pcm043_otg_mode(char *options) |
336 | { | 336 | { |
337 | if (!strcmp(options, "host")) | 337 | if (!strcmp(options, "host")) |
338 | otg_mode_host = 1; | 338 | otg_mode_host = true; |
339 | else if (!strcmp(options, "device")) | 339 | else if (!strcmp(options, "device")) |
340 | otg_mode_host = 0; | 340 | otg_mode_host = false; |
341 | else | 341 | else |
342 | pr_info("otg_mode neither \"host\" nor \"device\". " | 342 | pr_info("otg_mode neither \"host\" nor \"device\". " |
343 | "Defaulting to device\n"); | 343 | "Defaulting to device\n"); |
344 | return 0; | 344 | return 1; |
345 | } | 345 | } |
346 | __setup("otg_mode=", pcm043_otg_mode); | 346 | __setup("otg_mode=", pcm043_otg_mode); |
347 | 347 | ||
@@ -363,7 +363,7 @@ static void __init pcm043_init(void) | |||
363 | 363 | ||
364 | imx35_add_fec(NULL); | 364 | imx35_add_fec(NULL); |
365 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 365 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
366 | imx35_add_imx2_wdt(NULL); | 366 | imx35_add_imx2_wdt(); |
367 | 367 | ||
368 | imx35_add_imx_uart0(&uart_pdata); | 368 | imx35_add_imx_uart0(&uart_pdata); |
369 | imx35_add_mxc_nand(&pcm037_nand_board_info); | 369 | imx35_add_mxc_nand(&pcm037_nand_board_info); |
diff --git a/arch/arm/mach-imx/mach-qong.c b/arch/arm/mach-imx/mach-qong.c index 260621055b6b..a13087b11a6e 100644 --- a/arch/arm/mach-imx/mach-qong.c +++ b/arch/arm/mach-imx/mach-qong.c | |||
@@ -252,7 +252,7 @@ static void __init qong_init(void) | |||
252 | mxc_init_imx_uart(); | 252 | mxc_init_imx_uart(); |
253 | qong_init_nor_mtd(); | 253 | qong_init_nor_mtd(); |
254 | qong_init_fpga(); | 254 | qong_init_fpga(); |
255 | imx31_add_imx2_wdt(NULL); | 255 | imx31_add_imx2_wdt(); |
256 | } | 256 | } |
257 | 257 | ||
258 | static void __init qong_timer_init(void) | 258 | static void __init qong_timer_init(void) |
diff --git a/arch/arm/mach-imx/mach-vpr200.c b/arch/arm/mach-imx/mach-vpr200.c index add8c69c6c1a..b26209d4bcef 100644 --- a/arch/arm/mach-imx/mach-vpr200.c +++ b/arch/arm/mach-imx/mach-vpr200.c | |||
@@ -272,7 +272,7 @@ static void __init vpr200_board_init(void) | |||
272 | mxc_iomux_v3_setup_multiple_pads(vpr200_pads, ARRAY_SIZE(vpr200_pads)); | 272 | mxc_iomux_v3_setup_multiple_pads(vpr200_pads, ARRAY_SIZE(vpr200_pads)); |
273 | 273 | ||
274 | imx35_add_fec(NULL); | 274 | imx35_add_fec(NULL); |
275 | imx35_add_imx2_wdt(NULL); | 275 | imx35_add_imx2_wdt(); |
276 | imx_add_gpio_keys(&vpr200_gpio_keys_data); | 276 | imx_add_gpio_keys(&vpr200_gpio_keys_data); |
277 | 277 | ||
278 | platform_add_devices(devices, ARRAY_SIZE(devices)); | 278 | platform_add_devices(devices, ARRAY_SIZE(devices)); |
diff --git a/arch/arm/mach-imx/mx31lite-db.c b/arch/arm/mach-imx/mx31lite-db.c index bf0fb87946ba..fa60ef6ac7ff 100644 --- a/arch/arm/mach-imx/mx31lite-db.c +++ b/arch/arm/mach-imx/mx31lite-db.c | |||
@@ -191,6 +191,6 @@ void __init mx31lite_db_init(void) | |||
191 | imx31_add_mxc_mmc(0, &mmc_pdata); | 191 | imx31_add_mxc_mmc(0, &mmc_pdata); |
192 | imx31_add_spi_imx0(&spi0_pdata); | 192 | imx31_add_spi_imx0(&spi0_pdata); |
193 | gpio_led_register_device(-1, &litekit_led_platform_data); | 193 | gpio_led_register_device(-1, &litekit_led_platform_data); |
194 | imx31_add_imx2_wdt(NULL); | 194 | imx31_add_imx2_wdt(); |
195 | imx31_add_mxc_rtc(NULL); | 195 | imx31_add_mxc_rtc(); |
196 | } | 196 | } |