[U-Boot] [PATCH v2 14/18] at91: mtd: nand: Add dev_warn() to correct build error in driver

Scott Wood oss at buserror.net
Sat May 28 20:12:12 CEST 2016


On Thu, 2016-05-05 at 07:34 -0600, Simon Glass wrote:
> The code does not compile if ECC is enabled.
> 
> Signed-off-by: Andre Renaud <andre at designa-electronics.com>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> Changes in v2: None
> 
>  drivers/mtd/nand/atmel_nand.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c
> index 8fac824..15958cb 100644
> --- a/drivers/mtd/nand/atmel_nand.c
> +++ b/drivers/mtd/nand/atmel_nand.c
> @@ -20,6 +20,8 @@
>  #include <watchdog.h>
>  #include <linux/mtd/nand_ecc.h>
>  
> +#define dev_warn(dev, msg...)
> +
>  #ifdef CONFIG_ATMEL_NAND_HWECC
>  
>  /* Register access macros */

This should go in include/linux/compat.h with the others.

-Scott



More information about the U-Boot mailing list