|
@@ -466,9 +466,8 @@ static int jz_nand_probe(struct platform_device *pdev)
|
|
|
goto err_unclaim_banks;
|
|
|
}
|
|
|
|
|
|
- ret = mtd_device_parse_register(mtd, NULL, NULL,
|
|
|
- pdata ? pdata->partitions : NULL,
|
|
|
- pdata ? pdata->num_partitions : 0);
|
|
|
+ ret = mtd_device_register(mtd, pdata ? pdata->partitions : NULL,
|
|
|
+ pdata ? pdata->num_partitions : 0);
|
|
|
|
|
|
if (ret) {
|
|
|
dev_err(&pdev->dev, "Failed to add mtd device\n");
|