Re: [PATCH] USB and Driver Core patches for 2.6.10

Greg KH
2005-01-08T11:07:27Z

ChangeSet 1.1938.444.25, 2004/12/21 11:20:39-08:00, david-b@pacbell.net

[PATCH] USB: ohci build tweaks

Resolves some build glitches that snuck into OHCI.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>

drivers/usb/host/ohci-hcd.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)

diff -Nru a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
--- a/drivers/usb/host/ohci-hcd.c 2005-01-07 15:40:54 -08:00
+++ b/drivers/usb/host/ohci-hcd.c 2005-01-07 15:40:54 -08:00
@@ -416,7 +416,6 @@

static int ohci_init (struct ohci_hcd *ohci)
{
- u32 temp;
int ret;

disable (ohci);
@@ -427,6 +426,8 @@
/* SMM owns the HC? not for long! */
if (!no_handshake && ohci_readl (ohci,
&ohci->regs->control) & OHCI_CTRL_IR) {
+ u32 temp;
+
ohci_dbg (ohci, "USB HC TakeOver from BIOS/SMM\n");

/* this timeout is arbitrary. we make it long, so systems
@@ -902,14 +903,4 @@
|| defined (CONFIG_PXA27x) \
)
#error "missing bus glue for ohci-hcd"
-#endif
-
-#if !defined(HAVE_HNP) && defined(CONFIG_USB_OTG)
-
-#warning non-OTG configuration, too many HCDs
-
-static void start_hnp(struct ohci_hcd *ohci)
-{
- /* "can't happen" */
-}
#endif