All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: dgnc: replaces udelay with usleep_range in dgnc_cls.c
@ 2016-03-13  1:42 Juliana Rodrigues
  2016-03-13  3:39 ` [Outreachy kernel] " Julia Lawall
  0 siblings, 1 reply; 2+ messages in thread
From: Juliana Rodrigues @ 2016-03-13  1:42 UTC (permalink / raw)
  To: outreachy-kernel

This patch fixes the following issue on checkpatch.pl:

CHECK: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.txt
+       udelay(10);

Signed-off-by: Juliana Rodrigues <juliana.orod@gmail.com>
---
 drivers/staging/dgnc/dgnc_cls.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c
index 6e1e475..ac6f7cd 100644
--- a/drivers/staging/dgnc/dgnc_cls.c
+++ b/drivers/staging/dgnc/dgnc_cls.c
@@ -1172,7 +1172,8 @@ static void cls_uart_init(struct channel_t *ch)
 		UART_FCR_CLEAR_RCVR  |
 		UART_FCR_CLEAR_XMIT),
 		&ch->ch_cls_uart->isr_fcr);
-	udelay(10);
+
+	usleep_range(10000, 11000);
 
 	ch->ch_flags |= (CH_FIFO_ENABLED | CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
 
-- 
2.7.2



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-13  3:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-13  1:42 [PATCH] staging: dgnc: replaces udelay with usleep_range in dgnc_cls.c Juliana Rodrigues
2016-03-13  3:39 ` [Outreachy kernel] " Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.