Module Name: src Committed By: rjs Date: Thu Jun 18 08:40:26 UTC 2009
Modified Files: src/sys/dev/mii: mvphy.c Log Message: Make it compile. Change a commented out printf() to aprint_error_dev(). To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/dev/mii/mvphy.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/mii/mvphy.c diff -u src/sys/dev/mii/mvphy.c:1.8 src/sys/dev/mii/mvphy.c:1.9 --- src/sys/dev/mii/mvphy.c:1.8 Mon Nov 17 03:04:27 2008 +++ src/sys/dev/mii/mvphy.c Thu Jun 18 08:40:26 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: mvphy.c,v 1.8 2008/11/17 03:04:27 dyoung Exp $ */ +/* $NetBSD: mvphy.c,v 1.9 2009/06/18 08:40:26 rjs Exp $ */ /*- * Copyright (c) 2006 Sam Leffler, Errno Consulting @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: mvphy.c,v 1.8 2008/11/17 03:04:27 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: mvphy.c,v 1.9 2009/06/18 08:40:26 rjs Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -53,10 +53,10 @@ #define MV_CPU_PORT 5 /* port # of CPU port */ #define MV_READ(p, phy, r) \ - (*(p)->mii_pdata->mii_readreg)(device_parent(&(p)->mii_dev), \ + (*(p)->mii_pdata->mii_readreg)(device_parent((p)->mii_dev), \ phy, (r)) #define MV_WRITE(p, phy, r, v) \ - (*(p)->mii_pdata->mii_writereg)(device_parent(&(p)->mii_dev), \ + (*(p)->mii_pdata->mii_writereg)(device_parent((p)->mii_dev), \ phy, (r), (v)) /* XXX sysctl'able */ @@ -346,6 +346,5 @@ MV_WRITE(sc, MII_MV_SWITCH_GLOBAL_ADDR, MV_ATU_OPERATION, MV_ATU_OP_FLUSH_ALL | MV_ATU_BUSY); } /*else - printf("%s: timeout waiting for ATU flush\n", - device_xname(sc->mii_dev));*/ + aprint_error_dev(sc->mii_dev, "timeout waiting for ATU flush\n");*/ }