Commit 515a6f24 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix scsi irq errors on seagate

parent 610b5962
......@@ -1689,6 +1689,14 @@ static int seagate_st0x_device_reset(Scsi_Cmnd *SCpnt)
return FAILED;
}
static int seagate_st0x_release(struct Scsi_Host *shost)
{
if (shost->irq)
free_irq(shost->irq, shost);
release_region(shost->io_port, shost->n_io_port);
return 0;
}
/* Eventually this will go into an include file, but this will be later */
static Scsi_Host_Template driver_template = SEAGATE_ST0X;
......
......@@ -20,6 +20,7 @@ static int seagate_st0x_device_reset(Scsi_Cmnd *);
static int seagate_st0x_host_reset(Scsi_Cmnd *);
#define SEAGATE_ST0X { detect: seagate_st0x_detect, \
release: seagate_st0x_release, \
info: seagate_st0x_info, \
command: seagate_st0x_command, \
queuecommand: seagate_st0x_queue_command, \
......
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