[SCSI] sni_53c710: Cleanup
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 11 Jul 2007 17:09:36 +0000 (19:09 +0200)
committerJames Bottomley <jejb@mulgrave.localdomain>
Sun, 15 Jul 2007 00:12:15 +0000 (19:12 -0500)
- 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>
drivers/scsi/sni_53c710.c

index a7dfb65fb84277870d08899192dfbeac2823b8ce..0a6b45b1b003a7a0d64a2dd896355bfb15b9e8a0 100644 (file)
@@ -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)