From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm0-x235.google.com ([2a00:1450:400c:c09::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ar9qY-000549-R7 for linux-mtd@lists.infradead.org; Fri, 15 Apr 2016 19:56:08 +0000 Received: by mail-wm0-x235.google.com with SMTP id n3so46879470wmn.0 for ; Fri, 15 Apr 2016 12:55:46 -0700 (PDT) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Boris Brezillon Cc: linux-mtd@lists.infradead.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Richard Weinberger , David Woodhouse , Brian Norris , linux-kernel@vger.kernel.org (open list) Subject: [PATCH 08/12] mtd: nand: hisi504: set ECC algorithm based on DT info Date: Fri, 15 Apr 2016 21:54:08 +0200 Message-Id: <1460750052-16285-9-git-send-email-zajec5@gmail.com> In-Reply-To: <1460750052-16285-1-git-send-email-zajec5@gmail.com> References: <1460750052-16285-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to enum nand_ecc_algo). Signed-off-by: Rafał Miłecki --- drivers/mtd/nand/hisi504_nand.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mtd/nand/hisi504_nand.c b/drivers/mtd/nand/hisi504_nand.c index 7bf844c..f917297 100644 --- a/drivers/mtd/nand/hisi504_nand.c +++ b/drivers/mtd/nand/hisi504_nand.c @@ -768,6 +768,7 @@ static int hisi_nfc_probe(struct platform_device *pdev) chip->chip_delay = HINFC504_CHIP_DELAY; chip->ecc.mode = of_get_nand_ecc_mode(np); + chip->ecc.algo = of_get_nand_ecc_algo(np); buswidth = of_get_nand_bus_width(np); if (buswidth == 16) -- 1.8.4.5