git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
drivers
/
scsi
/
ultrastor.c
diff --git
a/drivers/scsi/ultrastor.c
b/drivers/scsi/ultrastor.c
index
3d0a0f2
..
e681681
100644
(file)
--- a/
drivers/scsi/ultrastor.c
+++ b/
drivers/scsi/ultrastor.c
@@
-259,7
+259,7
@@
static struct ultrastor_config
} config = {0};
/* Set this to 1 to reset the SCSI bus on error. */
} config = {0};
/* Set this to 1 to reset the SCSI bus on error. */
-int ultrastor_bus_reset;
+
static
int ultrastor_bus_reset;
/* Allowed BIOS base addresses (NULL indicates reserved) */
/* Allowed BIOS base addresses (NULL indicates reserved) */
@@
-343,7
+343,7
@@
static void log_ultrastor_abort(struct ultrastor_config *config,
}
#endif
}
#endif
-static int ultrastor_14f_detect(
Scsi_Host_T
emplate * tpnt)
+static int ultrastor_14f_detect(
struct scsi_host_t
emplate * tpnt)
{
size_t i;
unsigned char in_byte, version_byte = 0;
{
size_t i;
unsigned char in_byte, version_byte = 0;
@@
-525,7
+525,7
@@
out_release_port:
return FALSE;
}
return FALSE;
}
-static int ultrastor_24f_detect(
Scsi_Host_T
emplate * tpnt)
+static int ultrastor_24f_detect(
struct scsi_host_t
emplate * tpnt)
{
int i;
struct Scsi_Host * shpnt = NULL;
{
int i;
struct Scsi_Host * shpnt = NULL;
@@
-637,7
+637,7
@@
static int ultrastor_24f_detect(Scsi_Host_Template * tpnt)
return FALSE;
}
return FALSE;
}
-static int ultrastor_detect(
Scsi_Host_T
emplate * tpnt)
+static int ultrastor_detect(
struct scsi_host_t
emplate * tpnt)
{
tpnt->proc_name = "ultrastor";
return ultrastor_14f_detect(tpnt) || ultrastor_24f_detect(tpnt);
{
tpnt->proc_name = "ultrastor";
return ultrastor_14f_detect(tpnt) || ultrastor_24f_detect(tpnt);
@@
-879,7
+879,7
@@
static int ultrastor_abort(Scsi_Cmnd *SCpnt)
ogm_addr = (unsigned int)isa_bus_to_virt(inl(port0 + 23));
icm_status = inb(port0 + 27);
icm_addr = (unsigned int)isa_bus_to_virt(inl(port0 + 28));
ogm_addr = (unsigned int)isa_bus_to_virt(inl(port0 + 23));
icm_status = inb(port0 + 27);
icm_addr = (unsigned int)isa_bus_to_virt(inl(port0 + 28));
- spin_
lock_irqsav
e(host->host_lock, flags);
+ spin_
unlock_irqrestor
e(host->host_lock, flags);
}
/* First check to see if an interrupt is pending. I suspect the SiS
}
/* First check to see if an interrupt is pending. I suspect the SiS
@@
-945,7
+945,7
@@
static int ultrastor_abort(Scsi_Cmnd *SCpnt)
config.mscp[mscp_index].SCint, SCpnt);
#endif
if (config.mscp[mscp_index].SCint == 0)
config.mscp[mscp_index].SCint, SCpnt);
#endif
if (config.mscp[mscp_index].SCint == 0)
- return
SCSI_ABORT_NOT_RUNNING
;
+ return
FAILED
;
if (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort");
config.mscp[mscp_index].SCint = NULL;
if (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort");
config.mscp[mscp_index].SCint = NULL;
@@
-954,9
+954,7
@@
static int ultrastor_abort(Scsi_Cmnd *SCpnt)
SCpnt->result = DID_ABORT << 16;
/* Take the host lock to guard against scsi layer re-entry */
SCpnt->result = DID_ABORT << 16;
/* Take the host lock to guard against scsi layer re-entry */
- spin_lock_irqsave(host->host_lock, flags);
done(SCpnt);
done(SCpnt);
- spin_unlock_irqrestore(host->host_lock, flags);
/* Need to set a timeout here in case command never completes. */
return SUCCESS;
/* Need to set a timeout here in case command never completes. */
return SUCCESS;
@@
-1020,7
+1018,7
@@
static int ultrastor_host_reset(Scsi_Cmnd * SCpnt)
#endif
spin_unlock_irqrestore(host->host_lock, flags);
#endif
spin_unlock_irqrestore(host->host_lock, flags);
- return S
CSI_RESET_S
UCCESS;
+ return SUCCESS;
}
}
@@
-1186,7
+1184,7
@@
static irqreturn_t do_ultrastor_interrupt(int irq, void *dev_id,
MODULE_LICENSE("GPL");
MODULE_LICENSE("GPL");
-static
Scsi_Host_T
emplate driver_template = {
+static
struct scsi_host_t
emplate driver_template = {
.name = "UltraStor 14F/24F/34F",
.detect = ultrastor_detect,
.release = ultrastor_release,
.name = "UltraStor 14F/24F/34F",
.detect = ultrastor_detect,
.release = ultrastor_release,