Skip to contentSkip to conversation

staging: dgnc: dgnc_cls.c: Replaced udelay by usleep_range

PATCH New Jitendra Kumar Khasdev 1 participant 1 message Nov 24, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgnc: dgnc_cls.c: Replaced udelay by usleep_range

This patch is to file dgnc_cls.c that fixes up udelay function by usleep_range.
It is safe to use according to the following documentation Documentation/timers/timers-howto.txt. So that is why I have given an appropriate time range.

---
 drivers/staging/dgnc/dgnc_cls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_cls.c +1 -1
index 75040da..72f0aaa 100644
@@ -934,7 +934,7 @@ static void cls_flush_uart_write(struct channel_t *ch)
 
 	writeb((UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_XMIT),
 	       &ch->ch_cls_uart->isr_fcr);
-	udelay(10);
+	usleep_range(10, 20);
 
 	ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
 }
Signature · 1 line
1.9.1