提交 2da86589 编写于 作者: T Thomas Bogendoerfer 提交者: James Bottomley

[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: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 6ea7e33e
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册