Message ID | 1498028809-10595-1-git-send-email-clg@kaod.org |
---|---|
State | Accepted |
Delegated to: | Cyrille Pitchen |
Headers | show |
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@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" >
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"
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@kaod.org> --- drivers/mtd/spi-nor/aspeed-smc.c | 1 + 1 file changed, 1 insertion(+)