diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-04-20 06:56:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-21 15:28:47 -0400 |
commit | 32fd32a59cb6685324652ea0d79696c95453aebf (patch) | |
tree | 20c7ffe8bdfe16df0943bf1a557447e8bc6f68cc /drivers/net/irda/donauboe.c | |
parent | 31f31204dfc40a4bfd9c4a3d7078df969626b24e (diff) |
donauboe: replace excessive udelay with msleep
No driver should spin the CPU for 10ms, so better use
an msleep, which is allowed in the ->suspend function.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/donauboe.c')
-rw-r--r-- | drivers/net/irda/donauboe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/donauboe.c b/drivers/net/irda/donauboe.c index 4351296dde32..510b9c8d23a9 100644 --- a/drivers/net/irda/donauboe.c +++ b/drivers/net/irda/donauboe.c | |||
@@ -1710,7 +1710,7 @@ toshoboe_gotosleep (struct pci_dev *pci_dev, pm_message_t crap) | |||
1710 | 1710 | ||
1711 | /* Flush all packets */ | 1711 | /* Flush all packets */ |
1712 | while ((i--) && (self->txpending)) | 1712 | while ((i--) && (self->txpending)) |
1713 | udelay (10000); | 1713 | msleep(10); |
1714 | 1714 | ||
1715 | spin_lock_irqsave(&self->spinlock, flags); | 1715 | spin_lock_irqsave(&self->spinlock, flags); |
1716 | 1716 | ||