From: John Jacques <john.jacq...@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.jacq...@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

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to