Skip to content

Commit

Permalink
mtd: rawnand: marvell: Drop useless line
Browse files Browse the repository at this point in the history
The raw NAND core now declares the on host ECC engine being the
default if none is provided in the DT. Drop this line doing exactly
the same from the Marvell driver.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201113124114.449-1-miquel.raynal@bootlin.com
  • Loading branch information
Miquel Raynal committed Dec 10, 2020
1 parent b75e17b commit 62e5c6c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/mtd/nand/raw/marvell_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -2678,12 +2678,6 @@ static int marvell_nand_chip_init(struct device *dev, struct marvell_nfc *nfc,
mtd = nand_to_mtd(chip);
mtd->dev.parent = dev;

/*
* Default to HW ECC engine mode. If the nand-ecc-mode property is given
* in the DT node, this entry will be overwritten in nand_scan_ident().
*/
chip->ecc.engine_type = NAND_ECC_ENGINE_TYPE_ON_HOST;

/*
* Save a reference value for timing registers before
* ->setup_interface() is called.
Expand Down

0 comments on commit 62e5c6c

Please sign in to comment.