diff options
Diffstat (limited to 'drivers/mtd/tests/subpagetest.c')
-rw-r--r-- | drivers/mtd/tests/subpagetest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/tests/subpagetest.c b/drivers/mtd/tests/subpagetest.c index e2c0adf24cfc..a876371ad410 100644 --- a/drivers/mtd/tests/subpagetest.c +++ b/drivers/mtd/tests/subpagetest.c | |||
@@ -299,7 +299,7 @@ static int __init mtd_subpagetest_init(void) | |||
299 | return err; | 299 | return err; |
300 | } | 300 | } |
301 | 301 | ||
302 | if (mtd->type != MTD_NANDFLASH) { | 302 | if (!mtd_type_is_nand(mtd)) { |
303 | pr_info("this test requires NAND flash\n"); | 303 | pr_info("this test requires NAND flash\n"); |
304 | goto out; | 304 | goto out; |
305 | } | 305 | } |