Make it compile. Change a commented out printf() to aprint_error_dev().
This commit is contained in:
parent
78443215c7
commit
4cd376c68b
|
@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: mvphy.c,v 1.8 2008/11/17 03:04:27 dyoung Exp $");
|
|||
#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 @@ mvphy_flushatu(struct mii_softc *sc)
|
|||
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");*/
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue