Skip to contentSkip to conversation

Move do_irqinfo() to common/cmd_irq.c

PATCH New Peter Tyser 2 participants 2 messages Nov 11, 2009 – Dec 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Move do_irqinfo() to common/cmd_irq.c

cmd_irq.c is a much better home and it is already conditionally compiled based on CONFIG_CMD_IRQ.

---
 common/cmd_irq.c  |    9 +++++++++
 common/cmd_misc.c |   11 -----------
 2 files changed, 9 insertions(+), 11 deletions(-)
common/cmd_irq.c +9 -0
index 4604a5a..2c7e6bb 100644
@@ -47,3 +47,12 @@ U_BOOT_CMD(
 	"enable or disable interrupts",
 	"[on, off]"
 );
+
+/* Implemented in $(CPU)/interrupts.c */
+int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
+
+U_BOOT_CMD(
+	irqinfo,    1,    1,     do_irqinfo,
+	"print information about IRQs",
+	""
+);
common/cmd_misc.c +0 -11
index b97537e..b0ced2f 100644
@@ -49,17 +49,6 @@ int do_sleep (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 	return 0;
 }
 
-/* Implemented in $(CPU)/interrupts.c */
-#if defined(CONFIG_CMD_IRQ)
-int do_irqinfo (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-
-U_BOOT_CMD(
-	irqinfo,    1,    1,     do_irqinfo,
-	"print information about IRQs",
-	""
-);
-#endif
-
 U_BOOT_CMD(
 	sleep ,    2,    1,     do_sleep,
 	"delay execution for some time",
Signature · 1 line
1.6.2.1
#1 lore raw

PATCH 1/1 Move do_irqinfo() to common/cmd_irq.c

Dear Peter Tyser,

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

cmd_irq.c is a much better home and it is already conditionally compiled based on CONFIG_CMD_IRQ.

---
 common/cmd_irq.c  |    9 +++++++++
 common/cmd_misc.c |   11 -----------
 2 files changed, 9 insertions(+), 11 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
Mr. Cole's Axiom:
        The sum of the intelligence on the planet is a constant;
        the population is growing.