Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii CIPHY_MII_BMCR -> MII_BMCR in #ifdef foo.



details:   https://anonhg.NetBSD.org/src/rev/5184e986a6ab
branches:  trunk
changeset: 996033:5184e986a6ab
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 16 08:40:24 2019 +0000

description:
CIPHY_MII_BMCR -> MII_BMCR in #ifdef foo.

diffstat:

 sys/dev/mii/ciphy.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7ec583d62ecd -r 5184e986a6ab sys/dev/mii/ciphy.c
--- a/sys/dev/mii/ciphy.c       Wed Jan 16 08:32:58 2019 +0000
+++ b/sys/dev/mii/ciphy.c       Wed Jan 16 08:40:24 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ciphy.c,v 1.27 2019/01/16 08:32:58 msaitoh Exp $ */
+/* $NetBSD: ciphy.c,v 1.28 2019/01/16 08:40:24 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 2004
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ciphy.c,v 1.27 2019/01/16 08:32:58 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ciphy.c,v 1.28 2019/01/16 08:40:24 msaitoh Exp $");
 
 /*
  * Driver for the Cicada CS8201 10/100/1000 copper PHY.
@@ -183,7 +183,7 @@
                        /*
                         * If we're already in auto mode, just return.
                         */
-                       if (PHY_READ(sc, CIPHY_MII_BMCR) & CIPHY_BMCR_AUTOEN)
+                       if (PHY_READ(sc, MII_BMCR) & BMCR_AUTOEN)
                                return (0);
 #endif
                        (void) mii_phy_auto(sc, 0);



Home | Main Index | Thread Index | Old Index