This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / drivers / scsi / lasi700.c
index 35110f4..9f8683e 100644 (file)
@@ -107,16 +107,29 @@ lasi700_probe(struct parisc_device *dev)
 
        NCR_700_set_mem_mapped(hostdata);
 
-       host = NCR_700_detect(&lasi700_template, hostdata, &dev->dev,
-                             dev->irq, 7);
+       host = NCR_700_detect(&lasi700_template, hostdata);
        if (!host)
                goto out_kfree;
 
+       host->irq = dev->irq;
+       if (request_irq(dev->irq, NCR_700_intr, SA_SHIRQ,
+                               dev->dev.bus_id, host)) {
+               printk(KERN_ERR "%s: irq problem, detaching\n",
+                      dev->dev.bus_id);
+               goto out_put_host;
+       }
+
+       if (scsi_add_host(host, &dev->dev))
+               goto out_free_irq;
        dev_set_drvdata(&dev->dev, host);
        scsi_scan_host(host);
 
        return 0;
 
+ out_free_irq:
+       free_irq(host->irq, host);
+ out_put_host:
+       scsi_host_put(host);
  out_kfree:
        kfree(hostdata);
        return -ENODEV;