]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/mtd/maps/bast-flash.c
[MTD] [MAPS] fix platform driver hotplug/coldplug
[linux-2.6-omap-h63xx.git] / drivers / mtd / maps / bast-flash.c
index e074bb6787d21fb0a9c75447b00d01d8348d78eb..1f492062f8ca7fb18f62f7fbf35ee3ce54a6e758 100644 (file)
@@ -131,13 +131,13 @@ static int bast_flash_probe(struct platform_device *pdev)
 
        info->map.phys = res->start;
        info->map.size = res->end - res->start + 1;
-       info->map.name = pdev->dev.bus_id;      
+       info->map.name = pdev->dev.bus_id;
        info->map.bankwidth = 2;
 
        if (info->map.size > AREA_MAXSIZE)
                info->map.size = AREA_MAXSIZE;
 
-       pr_debug("%s: area %08lx, size %ld\n", __FUNCTION__,
+       pr_debug("%s: area %08lx, size %ld\n", __func__,
                 info->map.phys, info->map.size);
 
        info->area = request_mem_region(res->start, info->map.size,
@@ -149,7 +149,7 @@ static int bast_flash_probe(struct platform_device *pdev)
        }
 
        info->map.virt = ioremap(res->start, info->map.size);
-       pr_debug("%s: virt at %08x\n", __FUNCTION__, (int)info->map.virt);
+       pr_debug("%s: virt at %08x\n", __func__, (int)info->map.virt);
 
        if (info->map.virt == 0) {
                printk(KERN_ERR PFX "failed to ioremap() region\n");
@@ -223,3 +223,4 @@ module_exit(bast_flash_exit);
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Ben Dooks <ben@simtec.co.uk>");
 MODULE_DESCRIPTION("BAST MTD Map driver");
+MODULE_ALIAS("platform:bast-nor");