From 32dee01e67e0d14e86708c4ca6c5a9f4f81d5144 Mon Sep 17 00:00:00 2001 From: Tony Lindgren Date: Tue, 30 Oct 2012 10:44:00 -0700 Subject: ARM: OMAP: Fix relative includes for debug-devices.h 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 Let's add plat/debug-devices.h for debug_card_init() to fix the relative includes. Note that drivers must not use this header as it will break build for omap2+ CONFIG_MULTIPLATFORM builds. Cc: Paul Walmsley Signed-off-by: Tony Lindgren --- arch/arm/plat-omap/debug-devices.c | 2 +- arch/arm/plat-omap/include/plat/debug-devices.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 arch/arm/plat-omap/include/plat/debug-devices.h (limited to 'arch/arm/plat-omap') diff --git a/arch/arm/plat-omap/debug-devices.c b/arch/arm/plat-omap/debug-devices.c index 5a4678edd65a..b49be51202ee 100644 --- a/arch/arm/plat-omap/debug-devices.c +++ b/arch/arm/plat-omap/debug-devices.c @@ -16,7 +16,7 @@ #include #include -#include "../mach-omap2/debug-devices.h" +#include /* Many OMAP development platforms reuse the same "debug board"; these * platforms include H2, H3, H4, and Perseus2. diff --git a/arch/arm/plat-omap/include/plat/debug-devices.h b/arch/arm/plat-omap/include/plat/debug-devices.h new file mode 100644 index 000000000000..8fc4287222dd --- /dev/null +++ b/arch/arm/plat-omap/include/plat/debug-devices.h @@ -0,0 +1,2 @@ +/* for TI reference platforms sharing the same debug card */ +extern int debug_card_init(u32 addr, unsigned gpio); -- cgit v1.2.3