aboutsummaryrefslogtreecommitdiffstats
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
commit2afdd180ad2cd9e0536d0baf08061a91be90b4c4 (patch)
tree16290a0ad1efce1a0db3eeabdbe96e65499a4316 /target/linux/adm5120/files/drivers/usb/host/adm5120-hcd.c
parent86cdb4d96a4566af643afe6d6b0a8db9ee160791 (diff)
downloadupstream-2afdd180ad2cd9e0536d0baf08061a91be90b4c4.tar.gz
upstream-2afdd180ad2cd9e0536d0baf08061a91be90b4c4.tar.bz2
upstream-2afdd180ad2cd9e0536d0baf08061a91be90b4c4.zip
[adm5120] fix USB driver to compile with ADMH_VERBOSE_DEBUG defined
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9593 3c298f89-4303-0410-b956-a3cf2f4a3e73
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 30fe132d99..90889bfc04 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;