Skip to contentSkip to conversation

ide: Remove spurious second include of io.h

PATCH New Marcel Ziswiler 2 participants 4 messages May 2, 2008 – May 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ide: Remove spurious second include of io.h

---
 common/cmd_ide.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
common/cmd_ide.c +0 -1
index ead7e10..8280906 100644
@@ -31,7 +31,6 @@
 #include <command.h>
 #include <image.h>
 #include <asm/byteorder.h>
-#include <asm/io.h>
 
 #if defined(CONFIG_IDE_8xx_DIRECT) || defined(CONFIG_IDE_PCMCIA)
 # include <pcmcia.h>
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 ide: Remove spurious second include of io.h

Quoted 10 lines · In message <[email protected]> you wrote:
---
 common/cmd_ide.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
common/cmd_ide.c +0 -0
index ead7e10..8280906 100644

common/cmd_ide.c line 34

Quoted 5 lines
common/cmd_ide.c +0 -1
@@ -31,7 +31,6 @@
 #include <command.h>
 #include <image.h>
 #include <asm/byteorder.h>
-#include <asm/io.h>
 

Ummm... should we not rather remove the second include, with all the #ifdef around?

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
There's a way out of any cage.
	-- Captain Christopher Pike, "The Menagerie" ("The Cage"),
	   stardate unknown.
#2 lore raw

PATCH 1/1 ide: Remove spurious second include of io.h

In reply to Marcel Ziswiler

Removed the second include, with all the #ifdef around as suggested by Wolfgang.

---
 common/cmd_ide.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
common/cmd_ide.c +0 -4
index ead7e10..cac99d5 100644
@@ -52,10 +52,6 @@
 # include <status_led.h>
 #endif
 
-#ifndef __PPC__
-#include <asm/io.h>
-#endif
-
 #ifdef CONFIG_IDE_8xx_DIRECT
 DECLARE_GLOBAL_DATA_PTR;
 #endif
Signature · 1 line
1.5.4.1
#3 lore raw

PATCH 1/1 ide: Remove spurious second include of io.h

Quoted 6 lines · In message <[email protected]> you wrote:

Removed the second include, with all the #ifdef around as suggested by Wolfgang.

---
 common/cmd_ide.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Perfection is reached, not when there is no longer anything  to  add,
but when there is no longer anything to take away.
                                           - Antoine de Saint-Exupery