From: Miquel Raynal Date: Fri, 13 Nov 2020 12:41:14 +0000 (+0100) Subject: mtd: rawnand: marvell: Drop useless line X-Git-Tag: accepted/tizen/unified/20230118.172025~8250^2^3~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62e5c6c50992d1418eb9a6a8eaa51fa0b203b691;p=platform%2Fkernel%2Flinux-rpi.git mtd: rawnand: marvell: Drop useless line 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 Link: https://lore.kernel.org/linux-mtd/20201113124114.449-1-miquel.raynal@bootlin.com --- diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c index f5ca2002..42d4881 100644 --- a/drivers/mtd/nand/raw/marvell_nand.c +++ b/drivers/mtd/nand/raw/marvell_nand.c @@ -2679,12 +2679,6 @@ static int marvell_nand_chip_init(struct device *dev, struct marvell_nfc *nfc, 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. */