Skip to contentSkip to conversation

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

PATCH In review Roger Quadros 2 participants 2 messages Nov 7, 2014 – Nov 10, 2014

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 arch/arm/mach-omap2/gpmc.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-omap2/gpmc.c +0 -2
index 104bc2c..2334235 100644
@@ -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)) {
Signature · 1 line
1.8.3.2
maintainer
#1 lore raw
Quoted 14 lines · Roger Quadros

OMAP3 and lower SoCs don't have the ELM module so this warning is annoying. Get rid of it.

---
 arch/arm/mach-omap2/gpmc.c | 2 --
 1 file changed, 2 deletions(-)
arch/arm/mach-omap2/gpmc.c +0 -0
index 104bc2c..2334235 100644

arch/arm/mach-omap2/gpmc.c static int gpmc_probe_nand_child(struct platform_device *pdev, · line 1399

Quoted 8 lines
arch/arm/mach-omap2/gpmc.c +0 -2
@@ -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