mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
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 Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
217f93366e
commit
15bfaf7777
@ -397,7 +397,7 @@ static void cls_assert_modem_signals(struct channel_t *ch)
|
|||||||
writeb(out, &ch->ch_cls_uart->mcr);
|
writeb(out, &ch->ch_cls_uart->mcr);
|
||||||
|
|
||||||
/* Give time for the UART to actually drop the signals */
|
/* 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)
|
static void cls_copy_data_from_queue_to_uart(struct channel_t *ch)
|
||||||
|
Loading…
Reference in New Issue
Block a user