Skip to content

Commit 6408cc0

Browse files
jdelvaremiquelraynal
authored andcommitted
mtd: rawnand: Drop obsolete dependencies on COMPILE_TEST
Since commit 0166dc1 ("of: make CONFIG_OF user selectable"), it is possible to test-build any driver which depends on OF on any architecture by explicitly selecting OF. Therefore depending on COMPILE_TEST as an alternative is no longer needed. It is actually better to always build such drivers with OF enabled, so that the test builds are closer to how each driver will actually be built on its intended target. Building them without OF may not test much as the compiler will optimize out potentially large parts of the code. In the worst case, this could even pop false positive warnings. Dropping COMPILE_TEST here improves the quality of our testing and avoids wasting time on non-existent issues. Signed-off-by: Jean Delvare <[email protected]> Cc: Miquel Raynal <[email protected]> Cc: Richard Weinberger <[email protected]> Cc: Vignesh Raghavendra <[email protected]> Cc: Naga Sureshkumar Relli <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent c13bf58 commit 6408cc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/raw/Kconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ config MTD_NAND_PLATFORM
415415

416416
config MTD_NAND_CADENCE
417417
tristate "Support Cadence NAND (HPNFC) controller"
418-
depends on (OF || COMPILE_TEST) && HAS_IOMEM
418+
depends on OF && HAS_IOMEM
419419
help
420420
Enable the driver for NAND flash on platforms using a Cadence NAND
421421
controller.
@@ -430,7 +430,7 @@ config MTD_NAND_ARASAN
430430

431431
config MTD_NAND_INTEL_LGM
432432
tristate "Support for NAND controller on Intel LGM SoC"
433-
depends on OF || COMPILE_TEST
433+
depends on OF
434434
depends on HAS_IOMEM
435435
help
436436
Enables support for NAND Flash chips on Intel's LGM SoC.
@@ -450,7 +450,7 @@ config MTD_NAND_ROCKCHIP
450450

451451
config MTD_NAND_PL35X
452452
tristate "ARM PL35X NAND controller"
453-
depends on OF || COMPILE_TEST
453+
depends on OF
454454
depends on PL353_SMC
455455
help
456456
Enables support for PrimeCell SMC PL351 and PL353 NAND

0 commit comments

Comments
 (0)