summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx5
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-11-04 23:08:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2010-11-24 10:09:01 +0100
commit92fcdc9d1054a630f224657dc675e03bf3bb62ed (patch)
tree5bc1c3b420a8f025cba86a33de1a3a1ee00d9293 /arch/arm/mach-mx5
parentARM i.MX DMA: return gracefully on different socs (diff)
downloadlinux-92fcdc9d1054a630f224657dc675e03bf3bb62ed.tar.xz
linux-92fcdc9d1054a630f224657dc675e03bf3bb62ed.zip
ARM i.MX51: return gracefully on different socs
Code called from an initcall can be maybe called for machines it's not intended for. So check for valid machines and return gracefully if an incompatible machine is found. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx5')
-rw-r--r--arch/arm/mach-mx5/cpu.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/cpu.c b/arch/arm/mach-mx5/cpu.c
index eaacb6e9b5d0..061ab701b6d9 100644
--- a/arch/arm/mach-mx5/cpu.c
+++ b/arch/arm/mach-mx5/cpu.c
@@ -79,6 +79,9 @@ EXPORT_SYMBOL(mx51_revision);
*/
static int __init mx51_neon_fixup(void)
{
+ if (!cpu_is_mx51())
+ return 0;
+
if (mx51_revision() < MX51_CHIP_REV_3_0 && (elf_hwcap & HWCAP_NEON)) {
elf_hwcap &= ~HWCAP_NEON;
pr_info("Turning off NEON support, detected broken NEON implementation\n");