diff options
author | Jia-Ju Bai <baijiaju1990@gmail.com> | 2018-04-11 05:57:57 +0300 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-04-29 09:56:41 +0300 |
commit | 7b4b199459f31541141c4510e542bd4533a60585 (patch) | |
tree | 76068d82b6e888b8ff7623d058d2b7f647f4e27f /drivers/mtd/nand/raw/mtk_ecc.c | |
parent | ddd5ed3a90e797e2015cd83e9697c6ed867a3891 (diff) | |
download | linux-7b4b199459f31541141c4510e542bd4533a60585.tar.xz |
mtd: rawnand: diskonchip: Replace mdelay with usleep_range in doc_probe
doc_probe() is never called in atomic context.
doc_probe() is only called by init_nanddoc(), which is only set as
a parameter of module_init().
This function is not called in atomic context.
Despite never getting called from atomic context, doc_probe()
calls mdelay() to busily wait.
This is not necessary and can be replaced with usleep_range() to
avoid busy waiting.
This is found by a static analysis tool named DCNS written by myself.
And I also manually check it.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/mtk_ecc.c')
0 files changed, 0 insertions, 0 deletions