Commit a80b3424 authored by James Bottomley's avatar James Bottomley Committed by James Bottomley

[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: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent 0d7323c8
...@@ -2326,8 +2326,6 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag) ...@@ -2326,8 +2326,6 @@ ahd_linux_queue_recovery_cmd(struct scsi_cmnd *cmd, scb_flag flag)
return (retval); return (retval);
} }
static void ahd_linux_exit(void);
static void ahd_linux_set_width(struct scsi_target *starget, int width) static void ahd_linux_set_width(struct scsi_target *starget, int width)
{ {
struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
...@@ -2772,7 +2770,7 @@ ahd_linux_init(void) ...@@ -2772,7 +2770,7 @@ ahd_linux_init(void)
if (ahd_linux_detect(&aic79xx_driver_template) > 0) if (ahd_linux_detect(&aic79xx_driver_template) > 0)
return 0; return 0;
spi_release_transport(ahd_linux_transport_template); spi_release_transport(ahd_linux_transport_template);
ahd_linux_exit();
return -ENODEV; return -ENODEV;
} }
......
...@@ -2335,8 +2335,6 @@ ahc_platform_dump_card_state(struct ahc_softc *ahc) ...@@ -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) static void ahc_linux_set_width(struct scsi_target *starget, int width)
{ {
struct Scsi_Host *shost = dev_to_shost(starget->dev.parent); struct Scsi_Host *shost = dev_to_shost(starget->dev.parent);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment