summaryrefslogtreecommitdiffstats
path: root/drivers/uwb/whci.c
diff options
context:
space:
mode:
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 e626467f95e3..1f8964ed9882 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,
val = le_readl(reg);
if ((val & mask) == result)
break;
- msleep(10);
if (t >= max_ms) {
- dev_err(dev, "timed out waiting for %s ", tag);
+ dev_err(dev, "%s timed out\n", tag);
return -ETIMEDOUT;
}
+ msleep(10);
t += 10;
}
return 0;
OpenPOWER on IntegriCloud