summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-hcd.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-11-30 15:56:59 -0800
committerSteve French <sfrench@us.ibm.com>2005-11-30 15:56:59 -0800
commitd2149b542382bfc206cb28485108f6470c979566 (patch)
tree484fad0d7493a9cfe33202db3687d348c0140f33 /drivers/usb/host/ohci-hcd.c
parent25741b3e43151bc207dd2b850b0bb157c442682b (diff)
parent346f7dbb17cb7d84317b4410df2e8f7bf2e57f44 (diff)
downloadblackbird-op-linux-d2149b542382bfc206cb28485108f6470c979566.tar.gz
blackbird-op-linux-d2149b542382bfc206cb28485108f6470c979566.zip
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/usb/host/ohci-hcd.c')
-rw-r--r--drivers/usb/host/ohci-hcd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
index 5c0c6c8a7a82..bf1d9abc07ac 100644
--- a/drivers/usb/host/ohci-hcd.c
+++ b/drivers/usb/host/ohci-hcd.c
@@ -115,7 +115,7 @@
/*-------------------------------------------------------------------------*/
-// #define OHCI_VERBOSE_DEBUG /* not always helpful */
+#undef OHCI_VERBOSE_DEBUG /* not always helpful */
/* For initializing controller (mask in an HCFS mode too) */
#define OHCI_CONTROL_INIT OHCI_CTRL_CBSR
@@ -253,6 +253,10 @@ static int ohci_urb_enqueue (
spin_lock_irqsave (&ohci->lock, flags);
/* don't submit to a dead HC */
+ if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags)) {
+ retval = -ENODEV;
+ goto fail;
+ }
if (!HC_IS_RUNNING(hcd->state)) {
retval = -ENODEV;
goto fail;
OpenPOWER on IntegriCloud