diff options
Diffstat (limited to 'drivers/mtd/nand/jz4740_nand.c')
-rw-r--r-- | drivers/mtd/nand/jz4740_nand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/nand/jz4740_nand.c b/drivers/mtd/nand/jz4740_nand.c index ac3b9f255e00..cc50e35cdc3d 100644 --- a/drivers/mtd/nand/jz4740_nand.c +++ b/drivers/mtd/nand/jz4740_nand.c | |||
@@ -367,9 +367,9 @@ static int __devinit jz_nand_probe(struct platform_device *pdev) | |||
367 | goto err_gpio_free; | 367 | goto err_gpio_free; |
368 | } | 368 | } |
369 | 369 | ||
370 | ret = mtd_device_parse_register(mtd, NULL, 0, | 370 | ret = mtd_device_parse_register(mtd, NULL, NULL, |
371 | pdata ? pdata->partitions : NULL, | 371 | pdata ? pdata->partitions : NULL, |
372 | pdata ? pdata->num_partitions : 0); | 372 | pdata ? pdata->num_partitions : 0); |
373 | 373 | ||
374 | if (ret) { | 374 | if (ret) { |
375 | dev_err(&pdev->dev, "Failed to add mtd device\n"); | 375 | dev_err(&pdev->dev, "Failed to add mtd device\n"); |