summaryrefslogtreecommitdiff
path: root/target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2007-11-23 18:11:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2007-11-23 18:11:49 +0000
commit4263fdd731d9a1922d93ccd7b46943b3bdf3d58e (patch)
tree16db2ec8c2b329f2bd075c06746af7b200a93d30 /target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
parent5a1a5dcf58f4af0faf9ca9ecf3d15bdbbf094b8b (diff)
downloadmtk-20170518-4263fdd731d9a1922d93ccd7b46943b3bdf3d58e.zip
mtk-20170518-4263fdd731d9a1922d93ccd7b46943b3bdf3d58e.tar.gz
mtk-20170518-4263fdd731d9a1922d93ccd7b46943b3bdf3d58e.tar.bz2
fix USB driver to compile with ADMH_VERBOSE_DEBUG defined
SVN-Revision: 9593
Diffstat (limited to 'target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c')
-rw-r--r--target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c b/target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
index 30fe132..90889bf 100644
--- a/target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
+++ b/target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
@@ -45,7 +45,7 @@
#include "../core/hcd.h"
#include "../core/hub.h"
-#define DRIVER_VERSION "v0.10"
+#define DRIVER_VERSION "v0.10.1"
#define DRIVER_AUTHOR "Gabor Juhos <juhosg at openwrt.org>"
#define DRIVER_DESC "ADMtek USB 1.1 Host Controller Driver"
@@ -228,11 +228,12 @@ static int admhc_urb_dequeue(struct usb_hcd *hcd, struct urb *urb)
struct admhcd *ahcd = hcd_to_admhcd(hcd);
unsigned long flags;
+ spin_lock_irqsave(&ahcd->lock, flags);
+
#ifdef ADMHC_VERBOSE_DEBUG
urb_print(ahcd, urb, "DEQUEUE", 1);
#endif
- spin_lock_irqsave(&ahcd->lock, flags);
if (HC_IS_RUNNING(hcd->state)) {
struct urb_priv *urb_priv;