aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/tests
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/tests')
-rw-r--r--drivers/mtd/tests/nandbiterrs.c2
-rw-r--r--drivers/mtd/tests/oobtest.c2
-rw-r--r--drivers/mtd/tests/pagetest.c2
-rw-r--r--drivers/mtd/tests/subpagetest.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/tests/nandbiterrs.c b/drivers/mtd/tests/nandbiterrs.c
index 3cd3aabbe1cd..6f976159611f 100644
--- a/drivers/mtd/tests/nandbiterrs.c
+++ b/drivers/mtd/tests/nandbiterrs.c
@@ -349,7 +349,7 @@ static int __init mtd_nandbiterrs_init(void)
349 goto exit_mtddev; 349 goto exit_mtddev;
350 } 350 }
351 351
352 if (mtd->type != MTD_NANDFLASH) { 352 if (!mtd_type_is_nand(mtd)) {
353 pr_info("this test requires NAND flash\n"); 353 pr_info("this test requires NAND flash\n");
354 err = -ENODEV; 354 err = -ENODEV;
355 goto exit_nand; 355 goto exit_nand;
diff --git a/drivers/mtd/tests/oobtest.c b/drivers/mtd/tests/oobtest.c
index ff35c465bfee..2e9e2d11f204 100644
--- a/drivers/mtd/tests/oobtest.c
+++ b/drivers/mtd/tests/oobtest.c
@@ -289,7 +289,7 @@ static int __init mtd_oobtest_init(void)
289 return err; 289 return err;
290 } 290 }
291 291
292 if (mtd->type != MTD_NANDFLASH) { 292 if (!mtd_type_is_nand(mtd)) {
293 pr_info("this test requires NAND flash\n"); 293 pr_info("this test requires NAND flash\n");
294 goto out; 294 goto out;
295 } 295 }
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 }
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 }