mtd: nand: mxc: Test CONFIG_OF instead of CONFIG_OF_MTD
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Sat, 17 Sep 2016 17:44:43 +0000 (19:44 +0200)
committerBoris Brezillon <boris.brezillon@free-electrons.com>
Fri, 23 Sep 2016 07:35:16 +0000 (09:35 +0200)
We are about to drop the OF_MTD Kconfig option. Test CONFIG_OF
activation instead of CONFIG_OF_MTD.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
drivers/mtd/nand/mxc_nand.c

index 75c0c0eb52aee2401ada45fe04a2443202f32a62..d68314c8c39914b732547b26b4e3efb29d7e9623 100644 (file)
@@ -1565,7 +1565,7 @@ static const struct platform_device_id mxcnd_devtype[] = {
 };
 MODULE_DEVICE_TABLE(platform, mxcnd_devtype);
 
-#ifdef CONFIG_OF_MTD
+#ifdef CONFIG_OF
 static const struct of_device_id mxcnd_dt_ids[] = {
        {
                .compatible = "fsl,imx21-nand",