Commit 82c6c04e authored by Miquel Raynal's avatar Miquel Raynal
Browse files

mtd: rawnand: marvell: Rename a function to clarify

parent c525b7af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2167,7 +2167,7 @@ static const struct mtd_ooblayout_ops marvell_nand_ooblayout_ops = {
	.free = marvell_nand_ooblayout_free,
};

static int marvell_nand_hw_ecc_ctrl_init(struct mtd_info *mtd,
static int marvell_nand_hw_ecc_controller_init(struct mtd_info *mtd,
					       struct nand_ecc_ctrl *ecc)
{
	struct nand_chip *chip = mtd_to_nand(mtd);
@@ -2262,7 +2262,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd,

	switch (ecc->mode) {
	case NAND_ECC_HW:
		ret = marvell_nand_hw_ecc_ctrl_init(mtd, ecc);
		ret = marvell_nand_hw_ecc_controller_init(mtd, ecc);
		if (ret)
			return ret;
		break;