Commit 4167d41d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix aic7xxx_old.c for !PCI

From: Adrian Bunk <bunk@fs.tum.de>

drivers/scsi/aic7xxx_old.c: In function `aic7xxx_release':
drivers/scsi/aic7xxx_old.c:10971: warning: implicit declaration of function `pci_release_regions'
parent b2efc82c
...@@ -9675,7 +9675,9 @@ aic7xxx_detect(Scsi_Host_Template *template) ...@@ -9675,7 +9675,9 @@ aic7xxx_detect(Scsi_Host_Template *template)
found++; found++;
continue; continue;
skip_pci_controller: skip_pci_controller:
#ifdef CONFIG_PCI
pci_release_regions(temp_p->pdev); pci_release_regions(temp_p->pdev);
#endif
kfree(temp_p); kfree(temp_p);
} /* Found an Adaptec PCI device. */ } /* Found an Adaptec PCI device. */
else /* Well, we found one, but we couldn't get any memory */ else /* Well, we found one, but we couldn't get any memory */
...@@ -10967,8 +10969,10 @@ aic7xxx_release(struct Scsi_Host *host) ...@@ -10967,8 +10969,10 @@ aic7xxx_release(struct Scsi_Host *host)
#endif /* MMAPIO */ #endif /* MMAPIO */
if(!p->pdev) if(!p->pdev)
release_region(p->base, MAXREG - MINREG); release_region(p->base, MAXREG - MINREG);
#ifdef CONFIG_PCI
else else
pci_release_regions(p->pdev); pci_release_regions(p->pdev);
#endif
prev = NULL; prev = NULL;
next = first_aic7xxx; next = first_aic7xxx;
while(next != NULL) while(next != NULL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment