mtd: Add __nand_calculate_ecc() to NAND ECC functions
[safe/jmp/linux-2.6] / drivers / mtd / nand / sh_flctl.c
index c5df285..02bef21 100644 (file)
@@ -857,7 +857,6 @@ static int __exit flctl_remove(struct platform_device *pdev)
 }
 
 static struct platform_driver flctl_driver = {
-       .probe          = flctl_probe,
        .remove         = flctl_remove,
        .driver = {
                .name   = "sh_flctl",
@@ -867,7 +866,7 @@ static struct platform_driver flctl_driver = {
 
 static int __init flctl_nand_init(void)
 {
-       return platform_driver_register(&flctl_driver);
+       return platform_driver_probe(&flctl_driver, flctl_probe);
 }
 
 static void __exit flctl_nand_cleanup(void)