From owner-svn-src-head@FreeBSD.ORG Thu Feb 5 19:33:35 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2365106566B; Thu, 5 Feb 2009 19:33:35 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B1C8E8FC13; Thu, 5 Feb 2009 19:33:35 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n15JXZrh036190; Thu, 5 Feb 2009 19:33:35 GMT (envelope-from imp@svn.freebsd.org) Received: (from imp@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n15JXZ2j036189; Thu, 5 Feb 2009 19:33:35 GMT (envelope-from imp@svn.freebsd.org) Message-Id: <200902051933.n15JXZ2j036189@svn.freebsd.org> From: Warner Losh Date: Thu, 5 Feb 2009 19:33:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188176 - head/sys/dev/fxp X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Feb 2009 19:33:36 -0000 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