writereg returns an int.
This commit is contained in:
parent
1ce99eeccb
commit
c3297b3cc4
@ -255,7 +255,7 @@ static int fxp_serial_ifmedia_upd(struct ifnet *ifp);
|
|||||||
static void fxp_serial_ifmedia_sts(struct ifnet *ifp,
|
static void fxp_serial_ifmedia_sts(struct ifnet *ifp,
|
||||||
struct ifmediareq *ifmr);
|
struct ifmediareq *ifmr);
|
||||||
static int fxp_miibus_readreg(device_t dev, int phy, int reg);
|
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);
|
int value);
|
||||||
static void fxp_load_ucode(struct fxp_softc *sc);
|
static void fxp_load_ucode(struct fxp_softc *sc);
|
||||||
static int sysctl_int_range(SYSCTL_HANDLER_ARGS,
|
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);
|
return (value & 0xffff);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
fxp_miibus_writereg(device_t dev, int phy, int reg, int value)
|
fxp_miibus_writereg(device_t dev, int phy, int reg, int value)
|
||||||
{
|
{
|
||||||
struct fxp_softc *sc = device_get_softc(dev);
|
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)
|
if (count <= 0)
|
||||||
device_printf(dev, "fxp_miibus_writereg: timed out\n");
|
device_printf(dev, "fxp_miibus_writereg: timed out\n");
|
||||||
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user