mtd: do not use plain 0 as NULL
[deliverable/linux.git] / drivers / mtd / nand / fsmc_nand.c
index 4a018d0b70341103fdbeff588c28b09a8de94afb..341086c22e90587384a5d76325bef6b2e4d1c1f6 100644 (file)
@@ -940,13 +940,13 @@ static int __init fsmc_nand_probe(struct platform_device *pdev)
         * Check for partition info passed
         */
        host->mtd.name = "nand";
-       ret = mtd_device_parse_register(&host->mtd, NULL, 0,
-                       host->mtd.size <= 0x04000000 ?
-                               partition_info_16KB_blk :
-                               partition_info_128KB_blk,
-                       host->mtd.size <= 0x04000000 ?
-                               ARRAY_SIZE(partition_info_16KB_blk) :
-                               ARRAY_SIZE(partition_info_128KB_blk));
+       ret = mtd_device_parse_register(&host->mtd, NULL, NULL,
+                                       host->mtd.size <= 0x04000000 ?
+                                       partition_info_16KB_blk :
+                                       partition_info_128KB_blk,
+                                       host->mtd.size <= 0x04000000 ?
+                                       ARRAY_SIZE(partition_info_16KB_blk) :
+                                       ARRAY_SIZE(partition_info_128KB_blk));
        if (ret)
                goto err_probe;
 
This page took 0.023957 seconds and 5 git commands to generate.