pcmcia: pcmcia_resource: Replace mdelay() with msleep()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Mon, 30 Jul 2018 13:42:56 +0000 (21:42 +0800)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 1 Oct 2018 10:17:02 +0000 (12:17 +0200)
commit1b22dcf6b33ace39c11a2832260d499d020c3d55
tree094d179ba364b54ba758a9510eb40dc2a1768616
parent5f17af054d6a782e7b582d300274d3143fddba5e
pcmcia: pcmcia_resource: Replace mdelay() with msleep()

pcmcia_fixup_iowidth() and pcmcia_enable_device() are
never called in atomic context.
They call 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: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/pcmcia_resource.c