svn commit: r188176 - head/sys/dev/fxp

Warner Losh imp at FreeBSD.org
Thu Feb 5 11:33:36 PST 2009


Author: imp
Date: Thu Feb  5 19:33:35 2009
New Revision: 188176
URL: http://svn.freebsd.org/changeset/base/188176

Log:
  writereg returns an int.

Modified:
  head/sys/dev/fxp/if_fxp.c

Modified: head/sys/dev/fxp/if_fxp.c
==============================================================================
--- head/sys/dev/fxp/if_fxp.c	Thu Feb  5 19:33:20 2009	(r188175)
+++ head/sys/dev/fxp/if_fxp.c	Thu Feb  5 19:33:35 2009	(r188176)
@@ -255,7 +255,7 @@ static int		fxp_serial_ifmedia_upd(struc
 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
 	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 ph
 
 	if (count <= 0)
 		device_printf(dev, "fxp_miibus_writereg: timed out\n");
+	return (0);
 }
 
 static int


More information about the svn-src-head mailing list