From: Roger Quadros Date: Fri, 7 Nov 2014 12:26:59 +0000 (+0200) Subject: ARM: OMAP2+: gpmc: Get rid of "ti,elm-id not found" warning X-Git-Tag: v4.14-rc1~6389^2~12^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b771ca920c06a429da4effb046234fd4a0bb3917;p=platform%2Fkernel%2Flinux-rpi.git ARM: OMAP2+: gpmc: Get rid of "ti,elm-id not found" warning OMAP3 and lower SoCs don't have the ELM module so this warning is annoying. Get rid of it. Reported-by: Tony Lindgren Signed-off-by: Roger Quadros Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index 5fa3755..8fb5bbc 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -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)) {