aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_osm_pci.c')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
index 0d7628f1f1ef..00f5b9868574 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
@@ -352,7 +352,7 @@ ahc_linux_pci_reserve_io_region(struct ahc_softc *ahc, resource_size_t *base)
352 *base = pci_resource_start(ahc->dev_softc, 0); 352 *base = pci_resource_start(ahc->dev_softc, 0);
353 if (*base == 0) 353 if (*base == 0)
354 return (ENOMEM); 354 return (ENOMEM);
355 if (request_region(*base, 256, "aic7xxx") == 0) 355 if (!request_region(*base, 256, "aic7xxx"))
356 return (ENOMEM); 356 return (ENOMEM);
357 return (0); 357 return (0);
358} 358}
@@ -369,7 +369,7 @@ ahc_linux_pci_reserve_mem_region(struct ahc_softc *ahc,
369 start = pci_resource_start(ahc->dev_softc, 1); 369 start = pci_resource_start(ahc->dev_softc, 1);
370 if (start != 0) { 370 if (start != 0) {
371 *bus_addr = start; 371 *bus_addr = start;
372 if (request_mem_region(start, 0x1000, "aic7xxx") == 0) 372 if (!request_mem_region(start, 0x1000, "aic7xxx"))
373 error = ENOMEM; 373 error = ENOMEM;
374 if (error == 0) { 374 if (error == 0) {
375 *maddr = ioremap_nocache(start, 256); 375 *maddr = ioremap_nocache(start, 256);