UBI: block: Add CONFIG_BLOCK dependency
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Mon, 3 Mar 2014 16:42:40 +0000 (13:42 -0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 4 Mar 2014 12:49:53 +0000 (14:49 +0200)
The UBI block driver depends on the block infrastructure. Add the
proper dependency and fix a build error when CONFIG_BLOCK is not selected.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/Kconfig

index 783fb186d8765a4ebdb7bd3c1701f3c8daa9c2cf..f0855ce08ed9ac81c1e1460ae04d10ddc312967e 100644 (file)
@@ -90,6 +90,7 @@ config MTD_UBI_GLUEBI
 config MTD_UBI_BLOCK
        bool "Read-only block devices on top of UBI volumes"
        default n
+       depends on BLOCK
        help
           This option enables read-only UBI block devices support. UBI block
           devices will be layered on top of UBI volumes, which means that the