summaryrefslogtreecommitdiff
path: root/drivers/mtd/tests/pagetest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/pagetest.c')
-rw-r--r--drivers/mtd/tests/pagetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/pagetest.c b/drivers/mtd/tests/pagetest.c
index 44b96e999ad4..ed2d3f656fd2 100644
--- a/drivers/mtd/tests/pagetest.c
+++ b/drivers/mtd/tests/pagetest.c
@@ -353,7 +353,7 @@ static int __init mtd_pagetest_init(void)
return err;
}
- if (mtd->type != MTD_NANDFLASH) {
+ if (!mtd_type_is_nand(mtd)) {
pr_info("this test requires NAND flash\n");
goto out;
}