Skip to contentSkip to conversation

staging: dgnc: Fix usleep_range is preferred over udelay

PATCH New Joshua Abraham 1 participant 1 message Nov 7, 2017 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: dgnc: Fix usleep_range is preferred over udelay

This patch fixes the issue:

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

---
 drivers/staging/dgnc/dgnc_cls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/dgnc/dgnc_cls.c +1 -1
index 9639035..e264fe1 100644
@@ -397,7 +397,7 @@ static void cls_assert_modem_signals(struct channel_t *ch)
 	writeb(out, &ch->ch_cls_uart->mcr);
 
 	/* Give time for the UART to actually drop the signals */
-	udelay(10);
+	usleep_range(10, 20);
 }
 
 static void cls_copy_data_from_queue_to_uart(struct channel_t *ch)
Signature · 1 line
2.7.4