Browse Source

USB: omap1 ohci buildfix (otg related)

> > drivers/built-in.o: In function `ohci_omap_init':
 > > hid-quirks.c:(.text+0x6c608): undefined reference to `otg_get_transceiver'
 > > drivers/built-in.o: In function `omap_udc_probe':
 > > hid-quirks.c:(.init.text+0x34c0): undefined reference to `otg_get_transceiver'
 > > hid-quirks.c:(.init.text+0x3d40): undefined reference to `otg_put_transceiver'

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
David Brownell 16 years ago
parent
commit
2bf5fa13fc
2 changed files with 3 additions and 2 deletions
  1. 1 0
      drivers/usb/host/Kconfig
  2. 2 2
      drivers/usb/otg/Kconfig

+ 1 - 0
drivers/usb/host/Kconfig

@@ -140,6 +140,7 @@ config USB_OHCI_HCD
 	tristate "OHCI HCD support"
 	tristate "OHCI HCD support"
 	depends on USB && USB_ARCH_HAS_OHCI
 	depends on USB && USB_ARCH_HAS_OHCI
 	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3
 	select ISP1301_OMAP if MACH_OMAP_H2 || MACH_OMAP_H3
+	select USB_OTG_UTILS if ARCH_OMAP
 	---help---
 	---help---
 	  The Open Host Controller Interface (OHCI) is a standard for accessing
 	  The Open Host Controller Interface (OHCI) is a standard for accessing
 	  USB 1.1 host controller hardware.  It does more in hardware than Intel's
 	  USB 1.1 host controller hardware.  It does more in hardware than Intel's

+ 2 - 2
drivers/usb/otg/Kconfig

@@ -6,14 +6,14 @@
 
 
 comment "OTG and related infrastructure"
 comment "OTG and related infrastructure"
 
 
-if USB || USB_GADGET
-
 config USB_OTG_UTILS
 config USB_OTG_UTILS
 	bool
 	bool
 	help
 	help
 	  Select this to make sure the build includes objects from
 	  Select this to make sure the build includes objects from
 	  the OTG infrastructure directory.
 	  the OTG infrastructure directory.
 
 
+if USB || USB_GADGET
+
 #
 #
 # USB Transceiver Drivers
 # USB Transceiver Drivers
 #
 #