Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / drivers / mtd / nand / mxc_nand.c
index f04445b992f512c537018b81bf0d685a3ee2f62b..136e73a3e07e5359aee12877f96cfe81b71caba2 100644 (file)
@@ -1458,6 +1458,7 @@ static const struct of_device_id mxcnd_dt_ids[] = {
        },
        { /* sentinel */ }
 };
+MODULE_DEVICE_TABLE(of, mxcnd_dt_ids);
 
 static int __init mxcnd_probe_dt(struct mxc_nand_host *host)
 {
@@ -1516,7 +1517,6 @@ static int mxcnd_probe(struct platform_device *pdev)
        this = &host->nand;
        mtd = &host->mtd;
        mtd->priv = this;
-       mtd->owner = THIS_MODULE;
        mtd->dev.parent = &pdev->dev;
        mtd->name = DRIVER_NAME;