diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2014-05-16 06:00:57 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2014-05-16 17:14:25 -0400 |
commit | 77c2f02edbeda9409a7cf3fd66233015820c213a (patch) | |
tree | 2e451b546845e43ddf1800b9e24b147990c395af /arch/arm/mach-omap1 | |
parent | 4513c3b8c4370d795d9856f7589c64cd216772ab (diff) |
ARM: OMAP: replace checks for CONFIG_USB_GADGET_OMAP
Commit 193ab2a60700 ("usb: gadget: allow multiple gadgets to be built")
apparently required that checks for CONFIG_USB_GADGET_OMAP would be
replaced with checks for CONFIG_USB_OMAP. Do so now for the remaining
checks for CONFIG_USB_GADGET_OMAP, even though these checks have
basically been broken since v3.1.
And, since we're touching this code, use the IS_ENABLED() macro, so
things will now (hopefully) also work if USB_OMAP is modular.
Fixes: 193ab2a60700 ("usb: gadget: allow multiple gadgets to be built")
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1')
-rw-r--r-- | arch/arm/mach-omap1/board-h2.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-h3.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-innovator.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/board-osk.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap1/board-h2.c b/arch/arm/mach-omap1/board-h2.c index 65d2acb31498..5b45d266d83e 100644 --- a/arch/arm/mach-omap1/board-h2.c +++ b/arch/arm/mach-omap1/board-h2.c | |||
@@ -346,7 +346,7 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
346 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ | 346 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ |
347 | .otg = 2, | 347 | .otg = 2, |
348 | 348 | ||
349 | #ifdef CONFIG_USB_GADGET_OMAP | 349 | #if IS_ENABLED(CONFIG_USB_OMAP) |
350 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 350 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
351 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ | 351 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ |
352 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 352 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) |
diff --git a/arch/arm/mach-omap1/board-h3.c b/arch/arm/mach-omap1/board-h3.c index 816ecd13f81e..bfed4f928663 100644 --- a/arch/arm/mach-omap1/board-h3.c +++ b/arch/arm/mach-omap1/board-h3.c | |||
@@ -366,7 +366,7 @@ static struct omap_usb_config h3_usb_config __initdata = { | |||
366 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ | 366 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ |
367 | .otg = 2, | 367 | .otg = 2, |
368 | 368 | ||
369 | #ifdef CONFIG_USB_GADGET_OMAP | 369 | #if IS_ENABLED(CONFIG_USB_OMAP) |
370 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 370 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
371 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 371 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) |
372 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ | 372 | /* NONSTANDARD CABLE NEEDED (B-to-Mini-B) */ |
diff --git a/arch/arm/mach-omap1/board-innovator.c b/arch/arm/mach-omap1/board-innovator.c index bd5f02e9c354..c49ce83cc1eb 100644 --- a/arch/arm/mach-omap1/board-innovator.c +++ b/arch/arm/mach-omap1/board-innovator.c | |||
@@ -312,7 +312,7 @@ static struct omap_usb_config h2_usb_config __initdata = { | |||
312 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ | 312 | /* usb1 has a Mini-AB port and external isp1301 transceiver */ |
313 | .otg = 2, | 313 | .otg = 2, |
314 | 314 | ||
315 | #ifdef CONFIG_USB_GADGET_OMAP | 315 | #if IS_ENABLED(CONFIG_USB_OMAP) |
316 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ | 316 | .hmc_mode = 19, /* 0:host(off) 1:dev|otg 2:disabled */ |
317 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ | 317 | /* .hmc_mode = 21,*/ /* 0:host(off) 1:dev(loopback) 2:host(loopback) */ |
318 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 318 | #elif defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) |
diff --git a/arch/arm/mach-omap1/board-osk.c b/arch/arm/mach-omap1/board-osk.c index 3a0262156e93..7436d4cf6596 100644 --- a/arch/arm/mach-omap1/board-osk.c +++ b/arch/arm/mach-omap1/board-osk.c | |||
@@ -283,7 +283,7 @@ static struct omap_usb_config osk_usb_config __initdata = { | |||
283 | * be used, with a NONSTANDARD gender-bending cable/dongle, as | 283 | * be used, with a NONSTANDARD gender-bending cable/dongle, as |
284 | * a peripheral. | 284 | * a peripheral. |
285 | */ | 285 | */ |
286 | #ifdef CONFIG_USB_GADGET_OMAP | 286 | #if IS_ENABLED(CONFIG_USB_OMAP) |
287 | .register_dev = 1, | 287 | .register_dev = 1, |
288 | .hmc_mode = 0, | 288 | .hmc_mode = 0, |
289 | #else | 289 | #else |