diff options
author | Joshua Abraham | 2017-11-07 19:24:25 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-11-27 09:20:40 +0100 |
commit | 15bfaf777712f62e5d0c99b78e27978dab9a56c1 (patch) | |
tree | f44600fb1f3445a7d9b09d13e5ff14d3b7466ee3 /drivers/staging | |
parent | staging: ccree: fix incorrect indentation of break statement (diff) | |
download | kernel-qcow2-linux-15bfaf777712f62e5d0c99b78e27978dab9a56c1.tar.gz kernel-qcow2-linux-15bfaf777712f62e5d0c99b78e27978dab9a56c1.tar.xz kernel-qcow2-linux-15bfaf777712f62e5d0c99b78e27978dab9a56c1.zip |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/dgnc/dgnc_cls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c index 9639035fddd1..e264fe11cba4 100644 --- a/drivers/staging/dgnc/dgnc_cls.c +++ b/drivers/staging/dgnc/dgnc_cls.c @@ -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) |