aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/uwb/whci.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@csr.com>2008-11-25 09:34:47 -0500
committerDavid Vrabel <david.vrabel@csr.com>2008-11-25 09:34:47 -0500
commit5a4e1a795d7c5b47e94067a72db09f8cfb52bcff (patch)
tree71fe74f4b652d346ffc1651b0a36015abed36541 /drivers/uwb/whci.c
parent56968d0c1a920eb165c06318f5c458724e1df0af (diff)
uwb: clean up whci_wait_for() timeout error message
All callers of whci_wait_for() should get consistant error message if a timeout occurs. Signed-off-by: David Vrabel <david.vrabel@csr.com>
Diffstat (limited to 'drivers/uwb/whci.c')
-rw-r--r--drivers/uwb/whci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/uwb/whci.c b/drivers/uwb/whci.c
index e626467f95e..1f8964ed988 100644
--- a/drivers/uwb/whci.c
+++ b/drivers/uwb/whci.c
@@ -67,11 +67,11 @@ int whci_wait_for(struct device *dev, u32 __iomem *reg, u32 mask, u32 result,
67 val = le_readl(reg); 67 val = le_readl(reg);
68 if ((val & mask) == result) 68 if ((val & mask) == result)
69 break; 69 break;
70 msleep(10);
71 if (t >= max_ms) { 70 if (t >= max_ms) {
72 dev_err(dev, "timed out waiting for %s ", tag); 71 dev_err(dev, "%s timed out\n", tag);
73 return -ETIMEDOUT; 72 return -ETIMEDOUT;
74 } 73 }
74 msleep(10);
75 t += 10; 75 t += 10;
76 } 76 }
77 return 0; 77 return 0;