[PATCH] mtd: rawnand: atmel: Fix spelling mistake in error message

Tudor.Ambarus at microchip.com Tudor.Ambarus at microchip.com
Mon Apr 1 07:53:49 PDT 2019



On 04/01/2019 05:49 PM, Miquel Raynal wrote:
> External E-Mail
> 
> 
> 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 at bootlin.com>

Reviewed-by: Tudor Ambarus <tudor.ambarus at microchip.com>

> ---
>  drivers/mtd/nand/raw/atmel/nand-controller.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/mtd/nand/raw/atmel/nand-controller.c b/drivers/mtd/nand/raw/atmel/nand-controller.c
> index 5781fcf6b76c..3ec421ac44e2 100644
> --- a/drivers/mtd/nand/raw/atmel/nand-controller.c
> +++ b/drivers/mtd/nand/raw/atmel/nand-controller.c
> @@ -1797,7 +1797,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;
>  	}
>  
> 


More information about the linux-mtd mailing list