summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests/subpagetest.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests/subpagetest.c')
-rw-r--r--drivers/mtd/tests/subpagetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/subpagetest.c b/drivers/mtd/tests/subpagetest.c
index e2c0adf24cf..a876371ad41 100644
--- a/drivers/mtd/tests/subpagetest.c
+++ b/drivers/mtd/tests/subpagetest.c
@@ -299,7 +299,7 @@ static int __init mtd_subpagetest_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;
}