[PATCH] mtd: spi-nor: aspeed: include <linux/sizes.h>

Cyrille Pitchen cyrille.pitchen at wedev4u.fr
Wed Jun 21 15:31:47 PDT 2017


Le 21/06/2017 à 09:06, Cédric Le Goater a écrit :
> This fix a compile error on some platforms :
> 
> drivers/mtd/spi-nor/aspeed-smc.c: In function 'aspeed_smc_chip_set_segment':
> drivers/mtd/spi-nor/aspeed-smc.c:554:14: error: 'SZ_128M' undeclared (first use in this function)
>       size == SZ_128M) {
>               ^
> Signed-off-by: Cédric Le Goater <clg at kaod.org>

squashed into ("mtd: spi-nor: aspeed: configure chip window on AHB bus")
in the spi-nor/next branch of l2-mtd

Thanks!

> ---
>  drivers/mtd/spi-nor/aspeed-smc.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/mtd/spi-nor/aspeed-smc.c b/drivers/mtd/spi-nor/aspeed-smc.c
> index d91e0f3897b9..0106357421bd 100644
> --- a/drivers/mtd/spi-nor/aspeed-smc.c
> +++ b/drivers/mtd/spi-nor/aspeed-smc.c
> @@ -19,6 +19,7 @@
>  #include <linux/mtd/spi-nor.h>
>  #include <linux/of.h>
>  #include <linux/of_platform.h>
> +#include <linux/sizes.h>
>  #include <linux/sysfs.h>
>  
>  #define DEVICE_NAME	"aspeed-smc"
> 




More information about the linux-mtd mailing list