mtd: Correct dependency of BLK
authorTom Rini <trini@konsulko.com>
Wed, 15 Jan 2025 01:22:12 +0000 (19:22 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 21 Jan 2025 01:26:54 +0000 (19:26 -0600)
In the case of MTD_BLOCK and UBI_BLOCK they should be select'ing BLK as
they provide block device functionality and not depending on some other
block device already being enabled too (as is the typical case).

Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/mtd/Kconfig
drivers/mtd/ubi/Kconfig

index c71c1e5..185e834 100644 (file)
@@ -34,7 +34,7 @@ config MTD_CONCAT
 
 config MTD_BLOCK
        bool "Enable block device access to MTD devices"
-       depends on BLK
+       select BLK
        help
          Enable support for block device access to MTD devices
          using blk_ops abstraction.
index c027d89..ba77c03 100644 (file)
@@ -116,7 +116,7 @@ config MTD_UBI_FM_DEBUG
 
 config UBI_BLOCK
        bool "Enable UBI block device support"
-       depends on BLK
+       select BLK
        help
          Enable UBI block device support using blk_ops abstraction.