diff options
author | Huang Shijie <b32955@freescale.com> | 2013-08-16 02:10:08 (GMT) |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 20:38:27 (GMT) |
commit | f720e7ce510bf79f029be45ce200ccfce5551280 (patch) | |
tree | adb9efe0174b65f710e07d8e868502b8d9e7dafc /drivers/mtd/lpddr | |
parent | 4204cccde5e754745bbf30b077060c2033d29efa (diff) | |
download | linux-fsl-qoriq-f720e7ce510bf79f029be45ce200ccfce5551280.tar.xz |
mtd: gpmi: remove the nand_scan()
In order to make the nand_scan() work, the current code uses the hack code
to init the @nand_chip->ecc.size and the @nand_chip->ecc.strength. and
re-init some the ECC info in the gpmi_pre_bbt_scan().
This code is really a little ugly.
The patch does following changes:
(1) Use the nand_scan_ident()/nand_scan_tail() to replace the nand_scan().
(2) Init all the necessary values in the gpmi_init_last()
before we call the nand_scan_tail().
(3) remove the code setting the ECC info, let the mtd layer to do the
real job.
(4) remove the gpmi_scan_bbt(). we do not need this function any more.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/lpddr')
0 files changed, 0 insertions, 0 deletions