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
Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git]
/
drivers
/
scsi
/
nsp32.c
diff --git
a/drivers/scsi/nsp32.c
b/drivers/scsi/nsp32.c
index
bfb4f49
..
30ee0ef
100644
(file)
--- a/
drivers/scsi/nsp32.c
+++ b/
drivers/scsi/nsp32.c
@@
-1636,7
+1636,7
@@
static void nsp32_scsi_done(struct scsi_cmnd *SCpnt)
if (SCpnt->use_sg) {
pci_unmap_sg(data->Pci,
if (SCpnt->use_sg) {
pci_unmap_sg(data->Pci,
- (struct scatterlist *)SCpnt->
request_
buffer,
+ (struct scatterlist *)SCpnt->buffer,
SCpnt->use_sg, SCpnt->sc_data_direction);
} else {
pci_unmap_single(data->Pci,
SCpnt->use_sg, SCpnt->sc_data_direction);
} else {
pci_unmap_single(data->Pci,
@@
-2866,7
+2866,8
@@
static int nsp32_detect(struct scsi_host_template *sht)
*/
nsp32_do_bus_reset(data);
*/
nsp32_do_bus_reset(data);
- ret = request_irq(host->irq, do_nsp32_isr, IRQF_SHARED, "nsp32", data);
+ ret = request_irq(host->irq, do_nsp32_isr,
+ SA_SHIRQ | SA_SAMPLE_RANDOM, "nsp32", data);
if (ret < 0) {
nsp32_msg(KERN_ERR, "Unable to allocate IRQ for NinjaSCSI32 "
"SCSI PCI controller. Interrupt: %d", host->irq);
if (ret < 0) {
nsp32_msg(KERN_ERR, "Unable to allocate IRQ for NinjaSCSI32 "
"SCSI PCI controller. Interrupt: %d", host->irq);
@@
-2885,19
+2886,12
@@
static int nsp32_detect(struct scsi_host_template *sht)
}
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73))
}
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,73))
- ret = scsi_add_host(host, &PCIDEV->dev);
- if (ret) {
- nsp32_msg(KERN_ERR, "failed to add scsi host");
- goto free_region;
- }
+ scsi_add_host (host, &PCIDEV->dev);
scsi_scan_host(host);
#endif
pci_set_drvdata(PCIDEV, host);
return DETECT_OK;
scsi_scan_host(host);
#endif
pci_set_drvdata(PCIDEV, host);
return DETECT_OK;
- free_region:
- release_region(host->io_port, host->n_io_port);
-
free_irq:
free_irq(host->irq, data);
free_irq:
free_irq(host->irq, data);