[linux-yocto] [PATCH 02/15] arch/powerpc: Disable the ACP NAND Driver for 3500

Charlie Paul cpaul.windriver at gmail.com
Mon Apr 28 17:13:37 PDT 2014


From: John Jacques <john.jacques at lsi.com>

Added code to check for the existence of the NAND driver for
3500. If the driver does not exist then the error is returned
gracefully

Signed-off-by: John Jacques <john.jacques at lsi.com>
---
 drivers/mtd/nand/lsi_acp_nand.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/mtd/nand/lsi_acp_nand.c b/drivers/mtd/nand/lsi_acp_nand.c
index ddc58e3..ff2566b 100644
--- a/drivers/mtd/nand/lsi_acp_nand.c
+++ b/drivers/mtd/nand/lsi_acp_nand.c
@@ -3433,6 +3433,13 @@ lsi_nand_init(void)
 	static const char *part_probe_types[]
 	= { "cmdlinepart", "ofpart", NULL };
 
+	np = of_find_compatible_node(NULL, NULL, "lsi,acp3500");
+
+	if (NULL != np) {
+		pr_err("NAND Support is Not Yet Available on 3500\n");
+		return -1;
+	}
+
 	memset(&ppdata, 0, sizeof(ppdata));
 
 	np = of_find_node_by_type(np, "nand");
-- 
1.7.9.5



More information about the linux-yocto mailing list