summaryrefslogtreecommitdiffstats
path: root/sys/dev/nve
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-02-05 19:33:20 +0000
committerimp <imp@FreeBSD.org>2009-02-05 19:33:20 +0000
commit1ce99eeccbda0cd5e98a675740e7d4eb98713bfd (patch)
treec0185a604d490fe6a8d5b9e5897583d331d0ea58 /sys/dev/nve
parent49862b4836ada884821f0fdc0dafc57f98687124 (diff)
downloadFreeBSD-src-1ce99eeccbda0cd5e98a675740e7d4eb98713bfd.zip
FreeBSD-src-1ce99eeccbda0cd5e98a675740e7d4eb98713bfd.tar.gz
writereg returns an int.
Diffstat (limited to 'sys/dev/nve')
-rw-r--r--sys/dev/nve/if_nve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/nve/if_nve.c b/sys/dev/nve/if_nve.c
index ee65029..a0746c1 100644
--- a/sys/dev/nve/if_nve.c
+++ b/sys/dev/nve/if_nve.c
@@ -147,7 +147,7 @@ static int nve_ifmedia_upd(struct ifnet *);
static void nve_ifmedia_upd_locked(struct ifnet *);
static void nve_ifmedia_sts(struct ifnet *, struct ifmediareq *);
static int nve_miibus_readreg(device_t, int, int);
-static void nve_miibus_writereg(device_t, int, int, int);
+static int nve_miibus_writereg(device_t, int, int, int);
static void nve_dmamap_cb(void *, bus_dma_segment_t *, int, int);
static void nve_dmamap_tx_cb(void *, bus_dma_segment_t *, int, bus_size_t, int);
@@ -1292,7 +1292,7 @@ nve_miibus_readreg(device_t dev, int phy, int reg)
}
/* miibus Write PHY register wrapper - calls Nvidia API entry point */
-static void
+static int
nve_miibus_writereg(device_t dev, int phy, int reg, int data)
{
struct nve_softc *sc = device_get_softc(dev);
@@ -1303,7 +1303,7 @@ nve_miibus_writereg(device_t dev, int phy, int reg, int data)
DEBUGOUT(NVE_DEBUG_MII, "nve: nve_miibus_writereg - exit\n");
- return;
+ return 0;
}
/* Watchdog timer to prevent PHY lockups */
OpenPOWER on IntegriCloud