]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] aic79xx: fix boot panic with no hardware
authorJames Bottomley <James.Bottomley@steeleye.com>
Tue, 9 Aug 2005 00:06:50 +0000 (19:06 -0500)
committerJames Bottomley <jejb@mulgrave.(none)>
Tue, 9 Aug 2005 17:19:25 +0000 (12:19 -0500)
There's a spurious (and illegal since it's marked __exit) call to
ahc_linux_exit() in ahc_linux_init() which causes a double list
deletion of the transport class; remove it.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/aic7xxx/aic79xx_osm.c
drivers/scsi/aic7xxx/aic7xxx_osm.c

index acaeebd504657c863bd6af629099c3cf8f171879..2f158624c5d2da2699c60dbc95f688abc52ab209 100644 (file)
@@ -2326,8 +2326,6 @@ done:
        return (retval);
 }
 
-static void ahd_linux_exit(void);
-
 static void ahd_linux_set_width(struct scsi_target *starget, int width)
 {
        struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
@@ -2772,7 +2770,7 @@ ahd_linux_init(void)
        if (ahd_linux_detect(&aic79xx_driver_template) > 0)
                return 0;
        spi_release_transport(ahd_linux_transport_template);
-       ahd_linux_exit();
+
        return -ENODEV;
 }
 
index 3fbc10e58cc2d22f1b2c602aad8324e0c4fefa2f..22434849de4812469180f6e0699bfa7e517b1665 100644 (file)
@@ -2335,8 +2335,6 @@ ahc_platform_dump_card_state(struct ahc_softc *ahc)
 {
 }
 
-static void ahc_linux_exit(void);
-
 static void ahc_linux_set_width(struct scsi_target *starget, int width)
 {
        struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);