[PATCH] sim: dv-cfi: include common headers only

Mike Frysinger vapier@gentoo.org
Mon Jul 11 19:48:00 GMT 2011


The "devices.h" header is Blackfin-specific, so trying to build dv-cfi
for any other target fails.  Include the specific hw headers this file
needs directly.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2011-07-11  Mike Frysinger  <vapier@gentoo.org>

	* dv-cfi.c: Replace devices.h include with hw-base.h and hw-main.h.
---
 sim/common/dv-cfi.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sim/common/dv-cfi.c b/sim/common/dv-cfi.c
index 52dcf45..42d868c 100644
--- a/sim/common/dv-cfi.c
+++ b/sim/common/dv-cfi.c
@@ -33,7 +33,8 @@
 #endif
 
 #include "sim-main.h"
-#include "devices.h"
+#include "hw-base.h"
+#include "hw-main.h"
 #include "dv-cfi.h"
 
 /* Flashes are simple state machines, so here we cover all the
-- 
1.7.6



More information about the Gdb-patches mailing list