Explorar o código

[SCSI] aic79xx: fix boot panic with no hardware

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>
James Bottomley %!s(int64=20) %!d(string=hai) anos
pai
achega
a80b3424d9
Modificáronse 2 ficheiros con 1 adicións e 5 borrados
  1. 1 3
      drivers/scsi/aic7xxx/aic79xx_osm.c
  2. 0 2
      drivers/scsi/aic7xxx/aic7xxx_osm.c

+ 1 - 3
drivers/scsi/aic7xxx/aic79xx_osm.c

@@ -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;
 }
 

+ 0 - 2
drivers/scsi/aic7xxx/aic7xxx_osm.c

@@ -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);