Date: Fri, 27 Jul 2007 05:45:42 GMT From: Christopher Davis <loafier@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124156 for review Message-ID: <200707270545.l6R5jgDs033396@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707270545.l6R5jgDs033396>