From owner-svn-src-all@FreeBSD.ORG Mon Nov 28 13:42:59 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2B90106566C; Mon, 28 Nov 2011 13:42:59 +0000 (UTC) (envelope-from ray@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A28C48FC19; Mon, 28 Nov 2011 13:42:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pASDgx5l093350; Mon, 28 Nov 2011 13:42:59 GMT (envelope-from ray@svn.freebsd.org) Received: (from ray@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pASDgx5S093348; Mon, 28 Nov 2011 13:42:59 GMT (envelope-from ray@svn.freebsd.org) Message-Id: <201111281342.pASDgx5S093348@svn.freebsd.org> From: Aleksandr Rybalko Date: Mon, 28 Nov 2011 13:42:59 +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: r228064 - head/sys/mips/atheros X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 13:42:59 -0000 Author: ray Date: Mon Nov 28 13:42:59 2011 New Revision: 228064 URL: http://svn.freebsd.org/changeset/base/228064 Log: Simplify arge_flush_ddr to use updated ar71xx_device_flush_ddr_ge(unit). Approved by: adrian (mentor) Modified: head/sys/mips/atheros/if_arge.c Modified: head/sys/mips/atheros/if_arge.c ============================================================================== --- head/sys/mips/atheros/if_arge.c Mon Nov 28 13:32:39 2011 (r228063) +++ head/sys/mips/atheros/if_arge.c Mon Nov 28 13:42:59 2011 (r228064) @@ -191,10 +191,8 @@ MTX_SYSINIT(miibus_mtx, &miibus_mtx, "ar static void arge_flush_ddr(struct arge_softc *sc) { - if (sc->arge_mac_unit == 0) - ar71xx_device_flush_ddr_ge(0); - else - ar71xx_device_flush_ddr_ge(1); + + ar71xx_device_flush_ddr_ge(sc->arge_mac_unit); } static int