mtd: replace the hardcode with the onfi_feature()
authorHuang Shijie <b32955@freescale.com>
Fri, 17 May 2013 03:17:30 +0000 (11:17 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 30 Aug 2013 20:34:44 +0000 (21:34 +0100)
commite2985fc1d684927ce1dd5e5e6d35db8b52302685
tree2e65c912ebc68719e8bc77176435deb5e7cb2a7d
parent6dcbe0cdd83fb5f77be4f44c9e06c535281c375a
mtd: replace the hardcode with the onfi_feature()

The current code uses the hardcode to detect the 16-bit bus width.
Use the onfi_feature() to replace it.

Signed-off-by: Huang Shijie <b32955@freescale.com>
[Brian: small fixup]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/nand_base.c