diff options
author | imp <imp@FreeBSD.org> | 2009-02-05 19:33:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-02-05 19:33:35 +0000 |
commit | c3297b3cc47a3330802c3824d84fffbdbe5aa0da (patch) | |
tree | c127b03d14911b713e21a761af10c87be4cee671 /sys/dev | |
parent | 1ce99eeccbda0cd5e98a675740e7d4eb98713bfd (diff) | |
download | FreeBSD-src-c3297b3cc47a3330802c3824d84fffbdbe5aa0da.zip FreeBSD-src-c3297b3cc47a3330802c3824d84fffbdbe5aa0da.tar.gz |
writereg returns an int.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index ca1a614..4a21ad0 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -255,7 +255,7 @@ static int fxp_serial_ifmedia_upd(struct ifnet *ifp); static void fxp_serial_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr); static int fxp_miibus_readreg(device_t dev, int phy, int reg); -static void fxp_miibus_writereg(device_t dev, int phy, int reg, +static int fxp_miibus_writereg(device_t dev, int phy, int reg, int value); static void fxp_load_ucode(struct fxp_softc *sc); static int sysctl_int_range(SYSCTL_HANDLER_ARGS, @@ -2642,7 +2642,7 @@ fxp_miibus_readreg(device_t dev, int phy, int reg) return (value & 0xffff); } -static void +static int fxp_miibus_writereg(device_t dev, int phy, int reg, int value) { struct fxp_softc *sc = device_get_softc(dev); @@ -2658,6 +2658,7 @@ fxp_miibus_writereg(device_t dev, int phy, int reg, int value) if (count <= 0) device_printf(dev, "fxp_miibus_writereg: timed out\n"); + return (0); } static int |