memory: omap-gpmc: Include <linux/sizes.h> for SZ_16M
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 07:40:12 +0000 (09:40 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 14:18:32 +0000 (16:18 +0200)
The driver uses SZ_16M which is defined in include/linux/sizes.h.  On
ARM it was pulled by other headers but its inclusion is necessary for
compile testing on other architectures.

This fixes build error when compile testing on i386 architecture:

    drivers/memory/omap-gpmc.c: In function ‘gpmc_cs_remap’:
    drivers/memory/omap-gpmc.c:961:12: error: ‘SZ_16M’ undeclared (first use in this function)

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/omap-gpmc.c

index eff26c1..a4843d3 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/of_platform.h>
 #include <linux/omap-gpmc.h>
 #include <linux/pm_runtime.h>
+#include <linux/sizes.h>
 
 #include <linux/platform_data/mtd-nand-omap2.h>