1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

writereg returns an int.

This commit is contained in:
Warner Losh 2009-02-05 19:33:35 +00:00
parent 85a7cf04e7
commit 16ec4b00e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=188176

View File

@ -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