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 /arch/arm/mach-imx/mach-cpuimx51sd.c | |
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>
Diffstat (limited to 'arch/arm/mach-imx/mach-cpuimx51sd.c')
-rw-r--r-- | arch/arm/mach-imx/mach-cpuimx51sd.c | 10 |
1 files changed, 5 insertions, 5 deletions
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); |