[SCSI] jazz_esp, sgiwd93, sni_53c710, sun3x_esp: fix platform driver hotplug/coldplug
[linux-2.6.git] / drivers / scsi / sni_53c710.c
index 6bc5051..2bbef4c 100644 (file)
@@ -53,6 +53,7 @@
 MODULE_AUTHOR("Thomas Bogendörfer");
 MODULE_DESCRIPTION("SNI RM 53c710 SCSI Driver");
 MODULE_LICENSE("GPL");
+MODULE_ALIAS("platform:snirm_53c710");
 
 #define SNIRM710_CLOCK 32
 
@@ -84,7 +85,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;
@@ -98,7 +99,7 @@ static int __init snirm710_probe(struct platform_device *dev)
        host->this_id = 7;
        host->base = base;
        host->irq = platform_get_irq(dev, 0);
-       if(request_irq(host->irq, NCR_700_intr, SA_SHIRQ, "snirm710", host)) {
+       if(request_irq(host->irq, NCR_700_intr, IRQF_SHARED, "snirm710", host)) {
                printk(KERN_ERR "snirm710: request_irq failed!\n");
                goto out_put_host;
        }
@@ -136,18 +137,13 @@ static struct platform_driver snirm710_driver = {
        .remove = __devexit_p(snirm710_driver_remove),
        .driver = {
                .name   = "snirm_53c710",
+               .owner  = THIS_MODULE,
        },
 };
 
 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)