From owner-svn-src-head@freebsd.org Fri Mar 24 01:52:11 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 99467CA2363; Fri, 24 Mar 2017 01:52:11 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5C3E014DF; Fri, 24 Mar 2017 01:52:11 +0000 (UTC) (envelope-from jhibbits@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2O1qAnT028447; Fri, 24 Mar 2017 01:52:10 GMT (envelope-from jhibbits@FreeBSD.org) Received: (from jhibbits@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2O1qAdQ028446; Fri, 24 Mar 2017 01:52:10 GMT (envelope-from jhibbits@FreeBSD.org) Message-Id: <201703240152.v2O1qAdQ028446@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhibbits set sender to jhibbits@FreeBSD.org using -f From: Justin Hibbits Date: Fri, 24 Mar 2017 01:52:10 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r315880 - head/sys/powerpc/mpc85xx X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 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: Fri, 24 Mar 2017 01:52:11 -0000 Author: jhibbits Date: Fri Mar 24 01:52:10 2017 New Revision: 315880 URL: https://svnweb.freebsd.org/changeset/base/315880 Log: Don't bother checking core version We already constrain by SoC, so there's no need to check the core version, too. Modified: head/sys/powerpc/mpc85xx/mpc85xx_gpio.c Modified: head/sys/powerpc/mpc85xx/mpc85xx_gpio.c ============================================================================== --- head/sys/powerpc/mpc85xx/mpc85xx_gpio.c Fri Mar 24 01:30:18 2017 (r315879) +++ head/sys/powerpc/mpc85xx/mpc85xx_gpio.c Fri Mar 24 01:52:10 2017 (r315880) @@ -179,7 +179,6 @@ mpc85xx_gpio_pin_toggle(device_t dev, ui static int mpc85xx_gpio_probe(device_t dev) { - uint16_t vers; uint32_t svr; if (!ofw_bus_status_okay(dev)) @@ -188,16 +187,6 @@ mpc85xx_gpio_probe(device_t dev) if (!ofw_bus_is_compatible(dev, "gpio")) return (ENXIO); - vers = mfpvr() >> 16; - switch (vers) { - case FSL_E500v1: - case FSL_E500v2: - case FSL_E500mc: - break; - default: - return (ENXIO); - } - svr = mfspr(SPR_SVR); switch (SVR_VER(svr)) { case SVR_MPC8533: