Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/booke/dev Fix printing of phy.



details:   https://anonhg.NetBSD.org/src/rev/f658fff56d14
branches:  trunk
changeset: 770351:f658fff56d14
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Oct 13 19:53:30 2011 +0000

description:
Fix printing of phy.

diffstat:

 sys/arch/powerpc/booke/dev/pq3etsec.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r ef0ece288237 -r f658fff56d14 sys/arch/powerpc/booke/dev/pq3etsec.c
--- a/sys/arch/powerpc/booke/dev/pq3etsec.c     Thu Oct 13 19:52:33 2011 +0000
+++ b/sys/arch/powerpc/booke/dev/pq3etsec.c     Thu Oct 13 19:53:30 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pq3etsec.c,v 1.8 2011/09/27 01:02:35 jym Exp $ */
+/*     $NetBSD: pq3etsec.c,v 1.9 2011/10/13 19:53:30 matt Exp $        */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.8 2011/09/27 01:02:35 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pq3etsec.c,v 1.9 2011/10/13 19:53:30 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -484,7 +484,8 @@
                    cnl->cnl_instance);
                sc->sc_phy_addr = board_info_get_number(prop_name);
        }
-       aprint_normal(" phy %d", sc->sc_phy_addr);
+       if (sc->sc_phy_addr != MII_PHY_ANY)
+               aprint_normal(" phy %d", sc->sc_phy_addr);
 
        error = bus_space_map(sc->sc_bst, cnl->cnl_addr, cnl->cnl_size, 0,
            &sc->sc_bsh);



Home | Main Index | Thread Index | Old Index