Commit 9ab52d98 authored by Miquel Raynal's avatar Miquel Raynal

mtd: rawnand: meson: Fix typo in function name

There is a reason why sometime we write "NAND chip" with an 's'. It
usually means several chips can be managed by the same controller. So
when initializing a single chip at a time, the wording "chip" must be
used, otherwise when talking about all the chips managed by the
controller, we want to use "chips". Fix the function name to clarify the
meson_nfc_nand_chip*s*_cleanup() helper intend.
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarPratyush Yadav <pratyush@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20240826153158.67334-1-miquel.raynal@bootlin.com
parent 11813857
...@@ -1475,7 +1475,7 @@ meson_nfc_nand_chip_init(struct device *dev, ...@@ -1475,7 +1475,7 @@ meson_nfc_nand_chip_init(struct device *dev,
return 0; return 0;
} }
static void meson_nfc_nand_chip_cleanup(struct meson_nfc *nfc) static void meson_nfc_nand_chips_cleanup(struct meson_nfc *nfc)
{ {
struct meson_nfc_nand_chip *meson_chip; struct meson_nfc_nand_chip *meson_chip;
struct mtd_info *mtd; struct mtd_info *mtd;
...@@ -1500,7 +1500,7 @@ static int meson_nfc_nand_chips_init(struct device *dev, ...@@ -1500,7 +1500,7 @@ static int meson_nfc_nand_chips_init(struct device *dev,
for_each_child_of_node_scoped(np, nand_np) { for_each_child_of_node_scoped(np, nand_np) {
ret = meson_nfc_nand_chip_init(dev, nfc, nand_np); ret = meson_nfc_nand_chip_init(dev, nfc, nand_np);
if (ret) { if (ret) {
meson_nfc_nand_chip_cleanup(nfc); meson_nfc_nand_chips_cleanup(nfc);
return ret; return ret;
} }
} }
...@@ -1614,7 +1614,7 @@ static void meson_nfc_remove(struct platform_device *pdev) ...@@ -1614,7 +1614,7 @@ static void meson_nfc_remove(struct platform_device *pdev)
{ {
struct meson_nfc *nfc = platform_get_drvdata(pdev); struct meson_nfc *nfc = platform_get_drvdata(pdev);
meson_nfc_nand_chip_cleanup(nfc); meson_nfc_nand_chips_cleanup(nfc);
meson_nfc_disable_clk(nfc); meson_nfc_disable_clk(nfc);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment