linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] bootwrapper: In cuImage, print message for ENET devices not found in tree
@ 2007-08-30 20:26 Grant Likely
  2007-08-30 20:26 ` [PATCH 2/3] mpc8349: Add linux, network-index to ethernet nodes in device tree Grant Likely
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Grant Likely @ 2007-08-30 20:26 UTC (permalink / raw)
  To: linuxppc-dev

From: Grant Likely <grant.likely@secretlab.ca>

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
CC: Scott Wood <scottwood@freescale.com>
CC: Kumar Gala <galak@kernel.crashing.org>
CC: David Gibson <david@gibson.dropbear.id.au>
---

 arch/powerpc/boot/devtree.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/arch/powerpc/boot/devtree.c b/arch/powerpc/boot/devtree.c
index e1b8122..8451a1c 100644
--- a/arch/powerpc/boot/devtree.c
+++ b/arch/powerpc/boot/devtree.c
@@ -99,14 +99,14 @@ void __dt_fixup_mac_addresses(u32 startindex, ...)
 	while ((addr = va_arg(ap, const u8 *))) {
 		devp = find_node_by_prop_value(NULL, "linux,network-index",
 					       (void*)&index, sizeof(index));
-
-		printf("ENET%d: local-mac-address <-"
-		       " %02x:%02x:%02x:%02x:%02x:%02x\n\r", index,
-		       addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
-
-		if (devp)
+		if (devp) {
+			printf("ENET%d: local-mac-address <-"
+			       " %02x:%02x:%02x:%02x:%02x:%02x\n\r", index,
+			       addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]);
 			setprop(devp, "local-mac-address", addr, 6);
-
+		} else {
+			printf("ENET%d: no device in tree\n\r", index);
+		}
 		index++;
 	}
 	va_end(ap);

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-08-31 15:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-30 20:26 [PATCH 1/3] bootwrapper: In cuImage, print message for ENET devices not found in tree Grant Likely
2007-08-30 20:26 ` [PATCH 2/3] mpc8349: Add linux, network-index to ethernet nodes in device tree Grant Likely
2007-08-31  2:44   ` David Gibson
2007-08-30 20:26 ` [PATCH 3/3] mpc8349emitx(gp): update defconfigs for 2.6.23 Grant Likely
2007-08-31  2:43 ` [PATCH 1/3] bootwrapper: In cuImage, print message for ENET devices not found in tree David Gibson
2007-08-31  4:14   ` Grant Likely
2007-08-31  4:25     ` David Gibson
2007-08-31 15:29       ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).