diff options
Diffstat (limited to 'arch/arm/plat-omap/usb.c')
-rw-r--r-- | arch/arm/plat-omap/usb.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c index 205e2d0b826d..00afc7a8c2ab 100644 --- a/arch/arm/plat-omap/usb.c +++ b/arch/arm/plat-omap/usb.c | |||
@@ -91,6 +91,8 @@ EXPORT_SYMBOL(otg_set_transceiver); | |||
91 | 91 | ||
92 | /*-------------------------------------------------------------------------*/ | 92 | /*-------------------------------------------------------------------------*/ |
93 | 93 | ||
94 | #if defined(CONFIG_ARCH_OMAP_OTG) || defined(CONFIG_ARCH_OMAP15XX) | ||
95 | |||
94 | static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device) | 96 | static u32 __init omap_usb0_init(unsigned nwires, unsigned is_device) |
95 | { | 97 | { |
96 | u32 syscon1 = 0; | 98 | u32 syscon1 = 0; |
@@ -271,6 +273,8 @@ static u32 __init omap_usb2_init(unsigned nwires, unsigned alt_pingroup) | |||
271 | return syscon1 << 24; | 273 | return syscon1 << 24; |
272 | } | 274 | } |
273 | 275 | ||
276 | #endif | ||
277 | |||
274 | /*-------------------------------------------------------------------------*/ | 278 | /*-------------------------------------------------------------------------*/ |
275 | 279 | ||
276 | #if defined(CONFIG_USB_GADGET_OMAP) || \ | 280 | #if defined(CONFIG_USB_GADGET_OMAP) || \ |
@@ -494,7 +498,7 @@ static inline void omap_otg_init(struct omap_usb_config *config) {} | |||
494 | 498 | ||
495 | /*-------------------------------------------------------------------------*/ | 499 | /*-------------------------------------------------------------------------*/ |
496 | 500 | ||
497 | #ifdef CONFIG_ARCH_OMAP1510 | 501 | #ifdef CONFIG_ARCH_OMAP15XX |
498 | 502 | ||
499 | #define ULPD_DPLL_CTRL_REG __REG16(ULPD_DPLL_CTRL) | 503 | #define ULPD_DPLL_CTRL_REG __REG16(ULPD_DPLL_CTRL) |
500 | #define DPLL_IOB (1 << 13) | 504 | #define DPLL_IOB (1 << 13) |
@@ -507,7 +511,6 @@ static inline void omap_otg_init(struct omap_usb_config *config) {} | |||
507 | 511 | ||
508 | static void __init omap_1510_usb_init(struct omap_usb_config *config) | 512 | static void __init omap_1510_usb_init(struct omap_usb_config *config) |
509 | { | 513 | { |
510 | int status; | ||
511 | unsigned int val; | 514 | unsigned int val; |
512 | 515 | ||
513 | omap_usb0_init(config->pins[0], is_usb0_device(config)); | 516 | omap_usb0_init(config->pins[0], is_usb0_device(config)); |
@@ -539,6 +542,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config) | |||
539 | 542 | ||
540 | #ifdef CONFIG_USB_GADGET_OMAP | 543 | #ifdef CONFIG_USB_GADGET_OMAP |
541 | if (config->register_dev) { | 544 | if (config->register_dev) { |
545 | int status; | ||
546 | |||
542 | udc_device.dev.platform_data = config; | 547 | udc_device.dev.platform_data = config; |
543 | status = platform_device_register(&udc_device); | 548 | status = platform_device_register(&udc_device); |
544 | if (status) | 549 | if (status) |
@@ -549,6 +554,8 @@ static void __init omap_1510_usb_init(struct omap_usb_config *config) | |||
549 | 554 | ||
550 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 555 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) |
551 | if (config->register_host) { | 556 | if (config->register_host) { |
557 | int status; | ||
558 | |||
552 | ohci_device.dev.platform_data = config; | 559 | ohci_device.dev.platform_data = config; |
553 | status = platform_device_register(&ohci_device); | 560 | status = platform_device_register(&ohci_device); |
554 | if (status) | 561 | if (status) |