mtd: spi-nor: aspeed: include <linux/sizes.h>
Subsystems (3)
PATCH 1/1 mtd: spi-nor: aspeed: include <linux/sizes.h>
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 <[email protected]>
--- drivers/mtd/spi-nor/aspeed-smc.c | 1 + 1 file changed, 1 insertion(+)
drivers/mtd/spi-nor/aspeed-smc.c +1 -0
@@ -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"
Signature · 1 line
2.7.5
Quoted 7 lines · Cédric Le Goater
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 <[email protected]>
squashed into ("mtd: spi-nor: aspeed: configure chip window on AHB bus") in the spi-nor/next branch of l2-mtd
Thanks!
Quoted 17 lines
--- drivers/mtd/spi-nor/aspeed-smc.c | 1 + 1 file changed, 1 insertion(+)drivers/mtd/spi-nor/aspeed-smc.c +1
-0@@ -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"