ARM: OMAP2+: Fix omap4 errata warning on other SoCs
authorTony Lindgren <tony@atomide.com>
Tue, 23 Jul 2019 11:37:45 +0000 (04:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Sep 2019 05:16:49 +0000 (07:16 +0200)
commit2ff2bd2c5526589b19ebc1eae0331dcb7d7ae166
tree10d31886aec78bc054363670ecd2ed14ee9108d6
parent73d003274a42dcf8d2bdc4a2802aeec8531a4981
ARM: OMAP2+: Fix omap4 errata warning on other SoCs

[ Upstream commit 45da5e09dd32fa98c32eaafe2513db6bd75e2f4f ]

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 <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-omap2/omap4-common.c