Skip to content

Commit be3bcee

Browse files
tmlindRobertCNelson
authored andcommitted
ARM: OMAP2+: Fix omap4 errata warning on other SoCs
We have errata i688 workaround produce warnings on SoCs other than omap4 and omap5: omap4_sram_init:Unable to allocate sram needed to handle errata I688 omap4_sram_init:Unable to get sram pool needed to handle errata I688 This is happening because there is no ti,omap4-mpu node, or no SRAM to configure for the other SoCs, so let's remove the warning based on the SoC revision checks. As nobody has complained it seems that the other SoC variants do not need this workaround. Signed-off-by: Tony Lindgren <[email protected]>
1 parent 458190b commit be3bcee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/arm/mach-omap2/omap4-common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ static int __init omap4_sram_init(void)
131131
struct device_node *np;
132132
struct gen_pool *sram_pool;
133133

134+
if (!soc_is_omap44xx() && !soc_is_omap54xx())
135+
return 0;
136+
134137
np = of_find_compatible_node(NULL, NULL, "ti,omap4-mpu");
135138
if (!np)
136139
pr_warn("%s:Unable to allocate sram needed to handle errata I688\n",

0 commit comments

Comments
 (0)