diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-08 21:45:00 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-03-08 21:45:06 -0500 |
commit | 7de6f798e13093536b6cb229213db2fab6e6555f (patch) | |
tree | 1ab798388cf402ca4e63def5cc6b7f2ff38411ac /drivers | |
parent | 1f6ca0d6213278f8608c7e342e423ec0c0198040 (diff) |
mtd: Make SM_FTL depend on MTD_NAND
Randy Dunlap observed a build problem with the following config:
CONFIG_SM_FTL=y
CONFIG_SM_FTL_MUSEUM=y
CONFIG_MTD_NAND=m
The ECC calculation routines are then built as a module, but referenced
by the sm_ftl code in the kernel, resulting in a build failure. The
simple fix is to make CONFIG_SM_FTL depend on MTD_NAND unconditionally
-- it's pointless without hardware support anyway.
Fix some typos which Randy pointed out, too.
Reported-By: Randy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/Kconfig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/mtd/Kconfig b/drivers/mtd/Kconfig index 8a912406433f..dbee14d37224 100644 --- a/drivers/mtd/Kconfig +++ b/drivers/mtd/Kconfig | |||
@@ -307,22 +307,22 @@ config SSFDC | |||
307 | 307 | ||
308 | config SM_FTL | 308 | config SM_FTL |
309 | tristate "SmartMedia/xD new translation layer" | 309 | tristate "SmartMedia/xD new translation layer" |
310 | depends on EXPERIMENTAL && BLOCK | 310 | depends on EXPERIMENTAL && BLOCK && MTD_NAND |
311 | select MTD_BLKDEVS | 311 | select MTD_BLKDEVS |
312 | help | 312 | help |
313 | This enables new and very EXPERMENTAL support for SmartMedia/xD | 313 | This enables new and very EXPERMENTAL support for SmartMedia/xD |
314 | FTL (Flash tanslation layer) | 314 | FTL (Flash translation layer). |
315 | Write support isn't yet well tested, therefore this code IS likely to | 315 | Write support isn't yet well tested, therefore this code IS likely to |
316 | eat your card, so please don't use it together with valuable data. | 316 | eat your card, so please don't use it together with valuable data. |
317 | Use readonly driver (CONFIG_SSFDC) instead. | 317 | Use readonly driver (CONFIG_SSFDC) instead. |
318 | 318 | ||
319 | config SM_FTL_MUSEUM | 319 | config SM_FTL_MUSEUM |
320 | boolean "Additional Support for 1MiB and 2MiB SmartMedia cards" | 320 | boolean "Additional Support for 1MiB and 2MiB SmartMedia cards" |
321 | depends on SM_FTL && MTD_NAND | 321 | depends on SM_FTL |
322 | select MTD_NAND_ECC_SMC | 322 | select MTD_NAND_ECC_SMC |
323 | help | 323 | help |
324 | Very old SmartMedia cards need ECC to be calculated in the FTL | 324 | Very old SmartMedia cards need ECC to be calculated in the FTL. |
325 | Such cards are very rare, thus enabling this option is mostly useless | 325 | Such cards are very rare, thus enabling this option is mostly useless. |
326 | Also this support is completely UNTESTED. | 326 | Also this support is completely UNTESTED. |
327 | 327 | ||
328 | config MTD_OOPS | 328 | config MTD_OOPS |