]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix aic7xxx_old.c for !PCI
authorAndrew Morton <akpm@osdl.org>
Sat, 15 May 2004 03:23:54 +0000 (20:23 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 15 May 2004 03:23:54 +0000 (20:23 -0700)
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'

drivers/scsi/aic7xxx_old.c

index 5a86c65b557cbbd68a2f3ea8d3b89213dbdf7730..66069115e15dfed088abcbca1666b8a6b181a979 100644 (file)
@@ -9675,7 +9675,9 @@ aic7xxx_detect(Scsi_Host_Template *template)
           found++;
          continue;
 skip_pci_controller:
+#ifdef CONFIG_PCI
          pci_release_regions(temp_p->pdev);
+#endif
          kfree(temp_p);
         }  /* Found an Adaptec PCI device. */
         else /* Well, we found one, but we couldn't get any memory */
@@ -10967,8 +10969,10 @@ aic7xxx_release(struct Scsi_Host *host)
 #endif /* MMAPIO */
   if(!p->pdev)
     release_region(p->base, MAXREG - MINREG);
+#ifdef CONFIG_PCI
   else
     pci_release_regions(p->pdev);
+#endif
   prev = NULL;
   next = first_aic7xxx;
   while(next != NULL)