atmel: Replace mdelay() with msleep() in probe_atmel_card()
commit5685bee313e9e8577faebcb349706e299f486db5
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 27 Jul 2018 08:45:35 +0000 (27 16:45 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:25:33 +0000 (31 10:25 +0300)
tree9e4a570dd7bbfb0b5568726b54415bab3152d65b
parent37a634f60fd6dfbda2c312657eec7ef0750546e7
atmel: Replace mdelay() with msleep() in probe_atmel_card()

probe_atmel_card() is never called in atomic context.
It calls mdelay() to busily wait, which is not necessary.
mdelay() can be replaced with msleep().

This is found by a static analysis tool named DCNS written by myself.

Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/atmel/atmel.c