]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nand/atmel_nand.c
mtd: atmel_nand: fix the warning when CONFIG_OF is not defined
[karo-tx-linux.git] / drivers / mtd / nand / atmel_nand.c
index 65b302cf9f8a85a510b4c48d1d3d35db1c3d6fd1..ddcd575b2823b6455e5b03101daf48a27b0777d1 100644 (file)
@@ -2251,10 +2251,12 @@ static int atmel_nand_nfc_probe(struct platform_device *pdev)
        return 0;
 }
 
+#if defined(CONFIG_OF)
 static struct of_device_id atmel_nand_nfc_match[] = {
        { .compatible = "atmel,sama5d3-nfc" },
        { /* sentinel */ }
 };
+#endif
 
 static struct platform_driver atmel_nand_nfc_driver = {
        .driver = {