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

From: Greg KH
Date: Sat Jan 08 2005 - 06:11:47 EST


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

[PATCH] USB: ohci build tweaks

Resolves some build glitches that snuck into OHCI.

Signed-off-by: David Brownell <dbrownell@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/