From owner-p4-projects@FreeBSD.ORG Fri Jul 27 05:45:43 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8D00116A41A; Fri, 27 Jul 2007 05:45:43 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DB7616A418 for ; Fri, 27 Jul 2007 05:45:43 +0000 (UTC) (envelope-from loafier@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0042013C465 for ; Fri, 27 Jul 2007 05:45:43 +0000 (UTC) (envelope-from loafier@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6R5jgam033399 for ; Fri, 27 Jul 2007 05:45:42 GMT (envelope-from loafier@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6R5jgDs033396 for perforce@freebsd.org; Fri, 27 Jul 2007 05:45:42 GMT (envelope-from loafier@FreeBSD.org) Date: Fri, 27 Jul 2007 05:45:42 GMT Message-Id: <200707270545.l6R5jgDs033396@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to loafier@FreeBSD.org using -f From: Christopher Davis To: Perforce Change Reviews Cc: Subject: PERFORCE change 124156 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 05:45:43 -0000 http://perforce.freebsd.org/chv.cgi?CH=124156 Change 124156 by loafier@chrisdsoc on 2007/07/27 05:44:47 Whoops -- fix logic. Affected files ... .. //depot/projects/soc2007/loafier_busalloc/src/share/examples/drivers/template.c#3 edit Differences ... ==== //depot/projects/soc2007/loafier_busalloc/src/share/examples/drivers/template.c#3 (text+ko) ==== @@ -555,12 +555,12 @@ if (mapped == 0 && pci_enable_io(dev, SYS_RES_MEMORY) == 0) { sc->spec = XX_res_spec_mem; - if (bus_alloc_resources(dev, sc->spec, sc->res) != 0) + if (bus_alloc_resources(dev, sc->spec, sc->res) == 0) mapped = 1; } if (mapped == 0 && pci_enable_io(dev, SYS_RES_IOPORT) == 0) { sc->spec = XX_res_spec_io; - if (bus_alloc_resources(dev, sc->spec, sc->res) != 0) + if (bus_alloc_resources(dev, sc->spec, sc->res) == 0) mapped = 1; } if (mapped == 0) {