Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125101
b: refs/heads/master
c: b09ac64
h: refs/heads/master
i:
  125099: b1b0831
v: v3
  • Loading branch information
David Vrabel committed Oct 28, 2008
1 parent 9104a1e commit f5e90fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6a4b58707903cb0901966ac8dad5d6ec7f2d432f
refs/heads/master: b09ac64b7b2d93efab3998033588f5cb0e470ccf
8 changes: 5 additions & 3 deletions trunk/drivers/usb/host/whci/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ int whc_do_gencmd(struct whc *whc, u32 cmd, u32 params, void *addr, size_t len)
unsigned long flags;
dma_addr_t dma_addr;
int t;
int ret = 0;

mutex_lock(&whc->mutex);

Expand All @@ -61,7 +62,8 @@ int whc_do_gencmd(struct whc *whc, u32 cmd, u32 params, void *addr, size_t len)
dev_err(&whc->umc->dev, "generic command timeout (%04x/%04x)\n",
le_readl(whc->base + WUSBGENCMDSTS),
le_readl(whc->base + WUSBGENCMDPARAMS));
return -ETIMEDOUT;
ret = -ETIMEDOUT;
goto out;
}

if (addr) {
Expand All @@ -80,8 +82,8 @@ int whc_do_gencmd(struct whc *whc, u32 cmd, u32 params, void *addr, size_t len)
whc->base + WUSBGENCMDSTS);

spin_unlock_irqrestore(&whc->lock, flags);

out:
mutex_unlock(&whc->mutex);

return 0;
return ret;
}

0 comments on commit f5e90fa

Please sign in to comment.