From owner-svn-src-head@freebsd.org Wed Apr 27 19:54:58 2016 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 3506EB1FFA2; Wed, 27 Apr 2016 19:54:58 +0000 (UTC) (envelope-from jhb@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 056221E74; Wed, 27 Apr 2016 19:54:57 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3RJsvAA092164; Wed, 27 Apr 2016 19:54:57 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3RJsvmO092163; Wed, 27 Apr 2016 19:54:57 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201604271954.u3RJsvmO092163@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Wed, 27 Apr 2016 19:54:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298717 - head/sys/dev/pci 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.21 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: Wed, 27 Apr 2016 19:54:58 -0000 Author: jhb Date: Wed Apr 27 19:54:56 2016 New Revision: 298717 URL: https://svnweb.freebsd.org/changeset/base/298717 Log: Fix build for systems without PCI_RES_BUS. Submitted by: vangyzen Modified: head/sys/dev/pci/pci.c Modified: head/sys/dev/pci/pci.c ============================================================================== --- head/sys/dev/pci/pci.c Wed Apr 27 19:38:24 2016 (r298716) +++ head/sys/dev/pci/pci.c Wed Apr 27 19:54:56 2016 (r298717) @@ -4150,8 +4150,8 @@ pci_detach(device_t dev) error = bus_generic_detach(dev); if (error) return (error); - sc = device_get_softc(dev); #ifdef PCI_RES_BUS + sc = device_get_softc(dev); error = bus_release_resource(dev, PCI_RES_BUS, 0, sc->sc_bus); if (error) return (error);