OSDN Git Service

ARM: OMAP2+: gpmc: Get rid of "ti,elm-id not found" warning
authorRoger Quadros <rogerq@ti.com>
Fri, 7 Nov 2014 12:26:59 +0000 (14:26 +0200)
committerTony Lindgren <tony@atomide.com>
Mon, 10 Nov 2014 17:00:10 +0000 (09:00 -0800)
OMAP3 and lower SoCs don't have the ELM module so this warning
is annoying. Get rid of it.

Reported-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/gpmc.c

index 5fa3755..8fb5bbc 100644 (file)
@@ -1394,8 +1394,6 @@ static int gpmc_probe_nand_child(struct platform_device *pdev,
        if (gpmc_nand_data->elm_of_node == NULL)
                gpmc_nand_data->elm_of_node =
                                        of_parse_phandle(child, "elm_id", 0);
-       if (gpmc_nand_data->elm_of_node == NULL)
-               pr_warn("%s: ti,elm-id property not found\n", __func__);
 
        /* select ecc-scheme for NAND */
        if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) {