Skip to content

Commit 25e3f30

Browse files
henryZeambarus
authored andcommitted
mtd: spi-nor: core: fix implicit declaration warning
spi-nor/core.c needs to include linux/delay.h, or it would raise below compile warning: drivers/mtd/spi-nor/core.c: In function ‘spi_nor_soft_reset’: drivers/mtd/spi-nor/core.c:2779:2: error: implicit declaration of function ‘usleep_range’ [-Werror=implicit-function-declaration] 2779 | usleep_range(SPI_NOR_SRST_SLEEP_MIN, SPI_NOR_SRST_SLEEP_MAX); | ^~~~~~~~~~~~ Fixes: d73ee75 ("mtd: spi-nor: core: perform a Soft Reset on shutdown") Signed-off-by: Zeng Heng <zengheng4@huawei.com> Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org> Link: https://lore.kernel.org/r/20220923031457.56103-1-zengheng4@huawei.com
1 parent 55398be commit 25e3f30

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mtd/spi-nor/core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/math64.h>
1616
#include <linux/sizes.h>
1717
#include <linux/slab.h>
18+
#include <linux/delay.h>
1819

1920
#include <linux/mtd/mtd.h>
2021
#include <linux/of_platform.h>

0 commit comments

Comments
 (0)