X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fscsi%2Faic7xxx%2Faic7xxx_osm.c;h=3c7a4854d4bf077626a3138f8aa347dfc9e36c2b;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=0eb01bd3b5b703a0dc379638aea01089562b9517;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index 0eb01bd3b..3c7a4854d 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -844,7 +844,6 @@ ahc_linux_detect(Scsi_Host_Template *template) { struct ahc_softc *ahc; int found = 0; - int eisa_err, pci_err; #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) /* @@ -892,13 +891,10 @@ ahc_linux_detect(Scsi_Host_Template *template) */ ahc_list_lockinit(); - pci_err = ahc_linux_pci_init(); - eisa_err = ahc_linux_eisa_init(); - - if(pci_err && eisa_err) - goto out; - - + found = ahc_linux_pci_init(); + if (!ahc_linux_eisa_init()) + found++; + /* * Register with the SCSI layer all * controllers we've found. @@ -908,7 +904,6 @@ ahc_linux_detect(Scsi_Host_Template *template) if (ahc_linux_register_host(ahc, template) == 0) found++; } -out: #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0) spin_lock_irq(&io_request_lock);