staging: dgnc: replace udelay with usleep_range
authorAishwarya Pant <aishpant@gmail.com>
Mon, 27 Feb 2017 17:01:39 +0000 (22:31 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:39:54 +0000 (09:39 +0100)
commit5e38c984dbd98fa9f1998ff239775fd467beeb2c
tree122d3ab4045c1241b39ab5b67c6ce4fd48cb4d8f
parent4bc58d16753b99e45d84388d7e63b93d7f913a98
staging: dgnc: replace udelay with usleep_range

Fix checkpatch warning on dgnc_cls.c: CHECK usleep_range is preferred
over udelay. udelay(t) in function cls_uart_init is within non-atomic
context and can be safely replaced by usleep_range(t, t + delta) where
delta is t (as t is between 10 and 20 microseconds).

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c