mtd: nand: mxc: Test CONFIG_OF instead of CONFIG_OF_MTD

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sat Oct 8 21:59:06 PDT 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=ba52b4dd653088cb936b94c447f0a4dd20814629
Commit:     ba52b4dd653088cb936b94c447f0a4dd20814629
Parent:     fde85cfd2d079bdd733d7b07d9a5775a6f70f458
Author:     Boris Brezillon <boris.brezillon at free-electrons.com>
AuthorDate: Sat Sep 17 19:44:43 2016 +0200
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Fri Sep 23 09:35:16 2016 +0200

    mtd: nand: mxc: Test CONFIG_OF instead of CONFIG_OF_MTD
    
    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 at free-electrons.com>
---
 drivers/mtd/nand/mxc_nand.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index 75c0c0e..d68314c 100644
--- a/drivers/mtd/nand/mxc_nand.c
+++ b/drivers/mtd/nand/mxc_nand.c
@@ -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",



More information about the linux-mtd-cvs mailing list