aboutsummaryrefslogtreecommitdiffstats
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)
353 return err; 353 return err;
354 } 354 }
355 355
356 if (mtd->type != MTD_NANDFLASH) { 356 if (!mtd_type_is_nand(mtd)) {
357 pr_info("this test requires NAND flash\n"); 357 pr_info("this test requires NAND flash\n");
358 goto out; 358 goto out;
359 } 359 }