Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Feb 2009 19:33:35 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188176 - head/sys/dev/fxp
Message-ID:  <200902051933.n15JXZ2j036189@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902051933.n15JXZ2j036189>