diff options
author | <jejb@mulgrave.(none)> | 2005-04-03 03:57:48 -0600 |
---|---|---|
committer | James Bottomley <jejb@titanic> | 2005-04-16 20:09:43 -0500 |
commit | 56fece20086ebe32bce2c0d74ceadd516b56baae (patch) | |
tree | 3ce88fad34483bfc393feb2ee5f3a7f4b8a17f0b /drivers/scsi/sim710.c | |
parent | e183b06bf0be6c525867476df186d20f8f1efe54 (diff) | |
download | op-kernel-dev-56fece20086ebe32bce2c0d74ceadd516b56baae.zip op-kernel-dev-56fece20086ebe32bce2c0d74ceadd516b56baae.tar.gz |
[PATCH] finally fix 53c700 to use the generic iomem infrastructure
This driver has had it's own different infrastructure for doing this for
ages, but it's time it used the common one.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/sim710.c')
-rw-r--r-- | drivers/scsi/sim710.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index 63bf2ae..9171788 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c @@ -120,11 +120,10 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, } /* Fill in the three required pieces of hostdata */ - hostdata->base = base_addr; + hostdata->base = ioport_map(base_addr, 64); hostdata->differential = differential; hostdata->clock = clock; hostdata->chip710 = 1; - NCR_700_set_io_mapped(hostdata); /* and register the chip */ if((host = NCR_700_detect(&sim710_driver_template, hostdata, dev)) @@ -133,6 +132,7 @@ sim710_probe_common(struct device *dev, unsigned long base_addr, goto out_release; } host->this_id = scsi_id; + host->base = base_addr; host->irq = irq; if (request_irq(irq, NCR_700_intr, SA_SHIRQ, "sim710", host)) { printk(KERN_ERR "sim710: request_irq failed\n"); @@ -164,6 +164,7 @@ sim710_device_remove(struct device *dev) NCR_700_release(host); kfree(hostdata); free_irq(host->irq, host); + release_region(host->base, 64); return 0; } |