X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fmtd%2Fdevices%2Fspear_smi.c;h=f2016b5f59b60d551a9b888b06e5ea08cd49748b;hb=42d7fbe223ab878b23de9e3b0166f8cd665a2aa5;hp=f45dd37b771ec134540795ee523166bda7f66bb5;hpb=ee478af8b675908b217198a75cf759d422a81ccb;p=~andy%2Flinux diff --git a/drivers/mtd/devices/spear_smi.c b/drivers/mtd/devices/spear_smi.c index f45dd37b771..f2016b5f59b 100644 --- a/drivers/mtd/devices/spear_smi.c +++ b/drivers/mtd/devices/spear_smi.c @@ -851,7 +851,7 @@ static int spear_smi_setup_banks(struct platform_device *pdev, u32 bank) goto err_map; } } - ret = mtd_device_parse_register(&flash->mtd, NULL, 0, parts, count); + ret = mtd_device_parse_register(&flash->mtd, NULL, NULL, parts, count); if (ret) dev_err(&dev->pdev->dev, "Err MTD partition=%d\n", ret);