summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>2007-07-11 19:09:36 +0200
committerJames Bottomley <jejb@mulgrave.localdomain>2007-07-14 19:12:15 -0500
commit2da8658910580787ced4abc668adfb0f09710efb (patch)
tree4056fa45c91fbd4887e83c2a6f42136b6c9f44ce /drivers/scsi
parent6ea7e33ee1b74de9b60327fec1a0cd39afac3983 (diff)
downloadkernel-crypto-2da8658910580787ced4abc668adfb0f09710efb.tar.gz
kernel-crypto-2da8658910580787ced4abc668adfb0f09710efb.tar.xz
kernel-crypto-2da8658910580787ced4abc668adfb0f09710efb.zip
[SCSI] sni_53c710: Cleanup
- base address is now a physical address; no need to convert it - remove not needed error printk in module init function Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sni_53c710.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/scsi/sni_53c710.c b/drivers/scsi/sni_53c710.c
index a7dfb65fb84..0a6b45b1b00 100644
--- a/drivers/scsi/sni_53c710.c
+++ b/drivers/scsi/sni_53c710.c
@@ -84,7 +84,7 @@ static int __init snirm710_probe(struct platform_device *dev)
hostdata->dev = &dev->dev;
dma_set_mask(&dev->dev, DMA_32BIT_MASK);
- hostdata->base = ioremap_nocache(CPHYSADDR(base), 0x100);
+ hostdata->base = ioremap_nocache(base, 0x100);
hostdata->differential = 0;
hostdata->clock = SNIRM710_CLOCK;
@@ -141,13 +141,7 @@ static struct platform_driver snirm710_driver = {
static int __init snirm710_init(void)
{
- int err;
-
- if ((err = platform_driver_register(&snirm710_driver))) {
- printk(KERN_ERR "Driver registration failed\n");
- return err;
- }
- return 0;
+ return platform_driver_register(&snirm710_driver);
}
static void __exit snirm710_exit(void)