Browse Source

UBI: block: Add CONFIG_BLOCK dependency

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>
Ezequiel Garcia 11 years ago
parent
commit
22d3ee5c48
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/mtd/ubi/Kconfig

+ 1 - 0
drivers/mtd/ubi/Kconfig

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