diff options
Diffstat (limited to 'drivers/scsi/aic7xxx')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7770_osm.c | 2 | ||||
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm_pci.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/aic7xxx/aic7770_osm.c b/drivers/scsi/aic7xxx/aic7770_osm.c index 1ac119733bac..f220e5e436ab 100644 --- a/drivers/scsi/aic7xxx/aic7770_osm.c +++ b/drivers/scsi/aic7xxx/aic7770_osm.c | |||
@@ -50,7 +50,7 @@ aic7770_map_registers(struct ahc_softc *ahc, u_int port) | |||
50 | /* | 50 | /* |
51 | * Lock out other contenders for our i/o space. | 51 | * Lock out other contenders for our i/o space. |
52 | */ | 52 | */ |
53 | if (request_region(port, AHC_EISA_IOSIZE, "aic7xxx") == 0) | 53 | if (!request_region(port, AHC_EISA_IOSIZE, "aic7xxx")) |
54 | return (ENOMEM); | 54 | return (ENOMEM); |
55 | ahc->tag = BUS_SPACE_PIO; | 55 | ahc->tag = BUS_SPACE_PIO; |
56 | ahc->bsh.ioport = port; | 56 | ahc->bsh.ioport = port; |
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); |