diff options
author | Tony Lindgren <tony@atomide.com> | 2012-10-30 13:33:24 -0400 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-10-31 18:37:13 -0400 |
commit | 01480bad0a91413e92077067e38e82ade78dc88a (patch) | |
tree | 4d6e0f8dd1ace3541b2979ce37a40395c2128182 | |
parent | c34f7c696211e3d45ff94a34824b65aa52576bc6 (diff) |
ARM: OMAP: Fix relative includes for shared i2c.h file
As discussed on linux-arm-kernel, we want to avoid
relative includes for the arch/arm/*omap* shared code:
http://www.spinics.net/lists/linux-omap/msg80520.html
To fix this for the shared i2c.h, let's re-introduce
a minimal plat/i2c.h.
Note that drivers must not use this header as it will
break build for omap2+ CONFIG_MULTIPLATFORM builds.
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap1/common.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap1/i2c.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/i2c.h | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/i2c.c | 4 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/i2c.h (renamed from arch/arm/plat-omap/i2c.h) | 0 |
5 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-omap1/common.h b/arch/arm/mach-omap1/common.h index 26e19d3b7924..3d40f6ea3485 100644 --- a/arch/arm/mach-omap1/common.h +++ b/arch/arm/mach-omap1/common.h | |||
@@ -30,7 +30,7 @@ | |||
30 | #include <linux/mtd/mtd.h> | 30 | #include <linux/mtd/mtd.h> |
31 | #include <linux/i2c-omap.h> | 31 | #include <linux/i2c-omap.h> |
32 | 32 | ||
33 | #include "../plat-omap/i2c.h" | 33 | #include <plat/i2c.h> |
34 | 34 | ||
35 | #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) | 35 | #if defined(CONFIG_ARCH_OMAP730) || defined(CONFIG_ARCH_OMAP850) |
36 | void omap7xx_map_io(void); | 36 | void omap7xx_map_io(void); |
diff --git a/arch/arm/mach-omap1/i2c.c b/arch/arm/mach-omap1/i2c.c index 54097a29f432..faca808cb3d9 100644 --- a/arch/arm/mach-omap1/i2c.c +++ b/arch/arm/mach-omap1/i2c.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include <mach/mux.h> | 23 | #include <mach/mux.h> |
24 | #include "soc.h" | 24 | #include "soc.h" |
25 | 25 | ||
26 | #include "../plat-omap/i2c.h" | 26 | #include <plat/i2c.h> |
27 | 27 | ||
28 | #define OMAP_I2C_SIZE 0x3f | 28 | #define OMAP_I2C_SIZE 0x3f |
29 | #define OMAP1_I2C_BASE 0xfffb3800 | 29 | #define OMAP1_I2C_BASE 0xfffb3800 |
diff --git a/arch/arm/mach-omap2/i2c.h b/arch/arm/mach-omap2/i2c.h index 81dbb992a6bc..42b6f2e7d190 100644 --- a/arch/arm/mach-omap2/i2c.h +++ b/arch/arm/mach-omap2/i2c.h | |||
@@ -19,7 +19,7 @@ | |||
19 | * | 19 | * |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include "../plat-omap/i2c.h" | 22 | #include <plat/i2c.h> |
23 | 23 | ||
24 | #ifndef __MACH_OMAP2_I2C_H | 24 | #ifndef __MACH_OMAP2_I2C_H |
25 | #define __MACH_OMAP2_I2C_H | 25 | #define __MACH_OMAP2_I2C_H |
diff --git a/arch/arm/plat-omap/i2c.c b/arch/arm/plat-omap/i2c.c index d094273b9df5..4645dd40b886 100644 --- a/arch/arm/plat-omap/i2c.c +++ b/arch/arm/plat-omap/i2c.c | |||
@@ -31,9 +31,9 @@ | |||
31 | #include <linux/err.h> | 31 | #include <linux/err.h> |
32 | #include <linux/clk.h> | 32 | #include <linux/clk.h> |
33 | 33 | ||
34 | #include <mach/irqs.h> | 34 | #include <plat/i2c.h> |
35 | 35 | ||
36 | #include "i2c.h" | 36 | #include <mach/irqs.h> |
37 | 37 | ||
38 | #define OMAP_I2C_MAX_CONTROLLERS 4 | 38 | #define OMAP_I2C_MAX_CONTROLLERS 4 |
39 | static struct omap_i2c_bus_platform_data i2c_pdata[OMAP_I2C_MAX_CONTROLLERS]; | 39 | static struct omap_i2c_bus_platform_data i2c_pdata[OMAP_I2C_MAX_CONTROLLERS]; |
diff --git a/arch/arm/plat-omap/i2c.h b/arch/arm/plat-omap/include/plat/i2c.h index 7a9028cb5a75..7a9028cb5a75 100644 --- a/arch/arm/plat-omap/i2c.h +++ b/arch/arm/plat-omap/include/plat/i2c.h | |||