diff mbox

ARM: OMAP2+: gpmc: Get rid of "ti,elm-id not found" warning

Message ID 1415363219-25644-1-git-send-email-rogerq@ti.com
State Accepted
Commit b771ca920c06a429da4effb046234fd4a0bb3917
Headers show

Commit Message

Roger Quadros Nov. 7, 2014, 12:26 p.m. UTC
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>
---
 arch/arm/mach-omap2/gpmc.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Tony Lindgren Nov. 10, 2014, 5 p.m. UTC | #1
* Roger Quadros <rogerq@ti.com> [141107 04:28]:
> 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>
> ---
>  arch/arm/mach-omap2/gpmc.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> index 104bc2c..2334235 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)) {

I'll apply this into omap-for-v3.19/fixes-not-urgent as that's where
the various error and warning message fixes are.

Thanks,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
index 104bc2c..2334235 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)) {