PERFORCE change 124156 for review
Christopher Davis
loafier at FreeBSD.org
Fri Jul 27 05:45:43 UTC 2007
http://perforce.freebsd.org/chv.cgi?CH=124156
Change 124156 by loafier at 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) {
More information about the p4-projects
mailing list