ARM: OMAP1: Fix randconfig builds if ARCH_OMAP15XX not selected
authorTony Lindgren <tony@atomide.com>
Thu, 21 May 2015 21:50:23 +0000 (14:50 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 21 May 2015 21:50:23 +0000 (14:50 -0700)
With the omap1 SPARSE_IRQ changes mach/irqs.h is no longer
automatically included. Turns out now we rely on ARCH_OMAP15XX
including hardware.h from memory.h, so without ARCH_OMAP15XX
we get build failures.

As we have legacy drivers still relying on these indirect
includes, let's not add more mach includes to the drivers.
Those have to be removed anyways for multiplatform support.

Let's fix up mach-omap1 to include soc.h where cpu_is_omap
checks are done, and common.h for board-*.c files.

But let's keep the indirect memory.h include for now to avoid
unnecessary churn in the drivers.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-h3-mmc.c
arch/arm/mach-omap1/common.h
arch/arm/mach-omap1/gpio16xx.c
arch/arm/mach-omap1/gpio7xx.c
arch/arm/mach-omap1/include/mach/memory.h
arch/arm/mach-omap1/pm.c
arch/arm/mach-omap1/serial.c

index 17d77914d769233d4c1360ef5159a3df98cda596..43aab63cbc39da2903fc600faf0fbdbbfbb9d8d6 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <linux/i2c/tps65010.h>
 
+#include "common.h"
 #include "board-h3.h"
 #include "mmc.h"
 
index 6363e0cc41f19cd73fea465faffda9937c01cb8c..65bb6e8085de1fd8b81a335be4dc9117a352f892 100644 (file)
@@ -36,6 +36,8 @@
 
 #include <mach/irqs.h>
 
+#include "soc.h"
+
 #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850)
 void omap7xx_map_io(void);
 #else
index 6e6ec93dcbb3fd4a4f0d889b2e871737a38f028e..5b7a29b294d47991f4d66e87ca535ea9c4ea5f99 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <mach/irqs.h>
 
+#include "soc.h"
+
 #define OMAP1610_GPIO1_BASE            0xfffbe400
 #define OMAP1610_GPIO2_BASE            0xfffbec00
 #define OMAP1610_GPIO3_BASE            0xfffbb400
index 4612d2506a2db5a6e7e22d06a643e6beb6747409..0e5f68de23bfb4484b578dee72979559e959ba0e 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <mach/irqs.h>
 
+#include "soc.h"
+
 #define OMAP7XX_GPIO1_BASE             0xfffbc000
 #define OMAP7XX_GPIO2_BASE             0xfffbc800
 #define OMAP7XX_GPIO3_BASE             0xfffbd000
index 058a4f7d44c59fc9535ed6e79f353007238f012f..d43ff0f1cbf8d339525415d65e249abff3e2fc61 100644 (file)
@@ -5,6 +5,9 @@
 #ifndef __ASM_ARCH_MEMORY_H
 #define __ASM_ARCH_MEMORY_H
 
+/* REVISIT: omap1 legacy drivers still rely on this */
+#include <mach/soc.h>
+
 /*
  * Bus address is physical address, except for OMAP-1510 Local Bus.
  * OMAP-1510 bus address is translated into a Local Bus address if the
@@ -14,7 +17,6 @@
  * because of the strncmp().
  */
 #if defined(CONFIG_ARCH_OMAP15XX) && !defined(__ASSEMBLER__)
-#include <mach/soc.h>
 
 /*
  * OMAP-1510 Local Bus address offset
index dd94567c36289c16303a267a86cde69cfba82e75..ee5460b8ec2ee6e93c06ab60c10bac27c03774c3 100644 (file)
@@ -62,6 +62,7 @@
 #include "iomap.h"
 #include "clock.h"
 #include "pm.h"
+#include "soc.h"
 #include "sram.h"
 
 static unsigned int arm_sleep_save[ARM_SLEEP_SAVE_SIZE];
index d1ac08016f0bbaa99d9c6a99f38b4d38869b9675..a65bd0c4429607b3c7f2090ab876aed062348311 100644 (file)
@@ -25,6 +25,7 @@
 #include <mach/mux.h>
 
 #include "pm.h"
+#include "soc.h"
 
 static struct clk * uart1_ck;
 static struct clk * uart2_ck;