mtd: Make SM_FTL depend on MTD_NAND
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 9 Mar 2010 02:45:00 +0000 (18:45 -0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 9 Mar 2010 02:45:06 +0000 (18:45 -0800)
commit7de6f798e13093536b6cb229213db2fab6e6555f
tree1ab798388cf402ca4e63def5cc6b7f2ff38411ac
parent1f6ca0d6213278f8608c7e342e423ec0c0198040
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>
drivers/mtd/Kconfig