ChangeSet 1.2181.22.4, 2005/03/19 14:47:37-06:00, [EMAIL PROTECTED]
[PATCH] Misc Lasi 700 fixes
Misc Lasi 700 fixes
- Use the DMA_32BIT_MASK constants when calling dma_set_mask()
Signed-off-by: Tobias Klauser <[EMAIL PROTECTED]>
Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
- ioremap fixes
Signed-off-by: Matthew Wilcox <[EMAIL PROTECTED]>
Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
lasi700.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff -Nru a/drivers/scsi/lasi700.c b/drivers/scsi/lasi700.c
--- a/drivers/scsi/lasi700.c 2005-03-30 16:07:12 -08:00
+++ b/drivers/scsi/lasi700.c 2005-03-30 16:07:12 -08:00
@@ -111,8 +111,8 @@
memset(hostdata, 0, sizeof(struct NCR_700_Host_Parameters));
hostdata->dev = &dev->dev;
- dma_set_mask(&dev->dev, 0xffffffffUL);
- hostdata->base = base;
+ dma_set_mask(&dev->dev, DMA_32BIT_MASK);
+ hostdata->base = ioremap(base, 0x100);
hostdata->differential = 0;
if (dev->id.sversion == LASI_700_SVERSION) {
@@ -138,6 +138,7 @@
return 0;
out_kfree:
+ iounmap(hostdata->base);
kfree(hostdata);
return -ENODEV;
}
@@ -152,6 +153,7 @@
scsi_remove_host(host);
NCR_700_release(host);
free_irq(host->irq, host);
+ iounmap(hostdata->base);
kfree(hostdata);
return 0;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html