diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap1/common.h | 4 | ||||
-rw-r--r-- | arch/arm/plat-omap/usb.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/common.h b/arch/arm/mach-omap1/common.h index 8cc616e6f54a..bb7779b57795 100644 --- a/arch/arm/mach-omap1/common.h +++ b/arch/arm/mach-omap1/common.h | |||
@@ -67,6 +67,10 @@ extern bool omap_32k_timer_init(void); | |||
67 | 67 | ||
68 | extern u32 omap_irq_flags; | 68 | extern u32 omap_irq_flags; |
69 | 69 | ||
70 | #ifdef CONFIG_ARCH_OMAP16XX | ||
70 | extern int ocpi_enable(void); | 71 | extern int ocpi_enable(void); |
72 | #else | ||
73 | static inline int ocpi_enable(void) { return 0; } | ||
74 | #endif | ||
71 | 75 | ||
72 | #endif /* __ARCH_ARM_MACH_OMAP1_COMMON_H */ | 76 | #endif /* __ARCH_ARM_MACH_OMAP1_COMMON_H */ |
diff --git a/arch/arm/plat-omap/usb.c b/arch/arm/plat-omap/usb.c index 5db75619f213..daa0327381b5 100644 --- a/arch/arm/plat-omap/usb.c +++ b/arch/arm/plat-omap/usb.c | |||
@@ -37,7 +37,6 @@ void __init | |||
37 | omap_otg_init(struct omap_usb_config *config) | 37 | omap_otg_init(struct omap_usb_config *config) |
38 | { | 38 | { |
39 | u32 syscon; | 39 | u32 syscon; |
40 | int status; | ||
41 | int alt_pingroup = 0; | 40 | int alt_pingroup = 0; |
42 | 41 | ||
43 | /* NOTE: no bus or clock setup (yet?) */ | 42 | /* NOTE: no bus or clock setup (yet?) */ |
@@ -102,6 +101,7 @@ omap_otg_init(struct omap_usb_config *config) | |||
102 | #ifdef CONFIG_USB_GADGET_OMAP | 101 | #ifdef CONFIG_USB_GADGET_OMAP |
103 | if (config->otg || config->register_dev) { | 102 | if (config->otg || config->register_dev) { |
104 | struct platform_device *udc_device = config->udc_device; | 103 | struct platform_device *udc_device = config->udc_device; |
104 | int status; | ||
105 | 105 | ||
106 | syscon &= ~DEV_IDLE_EN; | 106 | syscon &= ~DEV_IDLE_EN; |
107 | udc_device->dev.platform_data = config; | 107 | udc_device->dev.platform_data = config; |
@@ -114,6 +114,7 @@ omap_otg_init(struct omap_usb_config *config) | |||
114 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) | 114 | #if defined(CONFIG_USB_OHCI_HCD) || defined(CONFIG_USB_OHCI_HCD_MODULE) |
115 | if (config->otg || config->register_host) { | 115 | if (config->otg || config->register_host) { |
116 | struct platform_device *ohci_device = config->ohci_device; | 116 | struct platform_device *ohci_device = config->ohci_device; |
117 | int status; | ||
117 | 118 | ||
118 | syscon &= ~HST_IDLE_EN; | 119 | syscon &= ~HST_IDLE_EN; |
119 | ohci_device->dev.platform_data = config; | 120 | ohci_device->dev.platform_data = config; |
@@ -126,6 +127,7 @@ omap_otg_init(struct omap_usb_config *config) | |||
126 | #ifdef CONFIG_USB_OTG | 127 | #ifdef CONFIG_USB_OTG |
127 | if (config->otg) { | 128 | if (config->otg) { |
128 | struct platform_device *otg_device = config->otg_device; | 129 | struct platform_device *otg_device = config->otg_device; |
130 | int status; | ||
129 | 131 | ||
130 | syscon &= ~OTG_IDLE_EN; | 132 | syscon &= ~OTG_IDLE_EN; |
131 | otg_device->dev.platform_data = config; | 133 | otg_device->dev.platform_data = config; |