]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mtd: rawnand: atmel: Fix spelling mistake in error message
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Apr 2019 14:49:01 +0000 (16:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:33 +0000 (09:21 +0100)
commit e39bb786816453788836c367caefd72eceea380c upstream.

Wrong copy/paste from the previous block, the error message should
refer to #size-cells instead of #address-cells.

Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mtd/nand/raw/atmel/nand-controller.c

index 32e95af486a2026f644825487c3b4a643cd566f5..ea022712edee846f530c90f49d9b2e07c24b199d 100644 (file)
@@ -1826,7 +1826,7 @@ static int atmel_nand_controller_add_nands(struct atmel_nand_controller *nc)
 
        ret = of_property_read_u32(np, "#size-cells", &val);
        if (ret) {
-               dev_err(dev, "missing #address-cells property\n");
+               dev_err(dev, "missing #size-cells property\n");
                return ret;
        }