]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
ARM: OMAP: move debug_card_init() function
authorIgor Grinberg <grinberg@compulab.co.il>
Tue, 28 Aug 2012 23:18:56 +0000 (02:18 +0300)
committerTony Lindgren <tony@atomide.com>
Mon, 10 Sep 2012 23:39:20 +0000 (16:39 -0700)
debug_card_init() function resides in the plat/board.h file.
Move it to a separate header file under plat/ so the board.h file can be
removed.

Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-h4.c
arch/arm/plat-omap/include/plat/board.h
arch/arm/plat-omap/include/plat/debug-devices.h [new file with mode: 0644]

index ace20482e3e1901eb4fedb311fa9e0ae55fa34b5..5be30e6dd4cba2c78d9212c99306d387d34dbf09 100644 (file)
 #include <asm/mach/arch.h>
 #include <asm/mach/map.h>
 
-#include <plat/board.h>
 #include "common.h"
 #include <plat/menelaus.h>
 #include <plat/dma.h>
 #include <plat/gpmc.h>
+#include <plat/debug-devices.h>
 
 #include <video/omapdss.h>
 #include <video/omap-panel-generic-dpi.h>
index 2ddc198b0920f2ae6d14db2c0ad8f52219de1093..d92f1b532f69736100e864d1c2b6c836714985fe 100644 (file)
@@ -10,9 +10,4 @@
 #ifndef _OMAP_BOARD_H
 #define _OMAP_BOARD_H
 
-#include <linux/types.h>
-
-/* for TI reference platforms sharing the same debug card */
-extern int debug_card_init(u32 addr, unsigned gpio);
-
 #endif
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 (file)
index 0000000..a4edbd2
--- /dev/null
@@ -0,0 +1,9 @@
+#ifndef _OMAP_DEBUG_DEVICES_H
+#define _OMAP_DEBUG_DEVICES_H
+
+#include <linux/types.h>
+
+/* for TI reference platforms sharing the same debug card */
+extern int debug_card_init(u32 addr, unsigned gpio);
+
+#endif