EDAC, xgene: Fix cpuid abuse
authorArnd Bergmann <arnd@arndb.de>
Mon, 1 Jun 2015 22:09:35 +0000 (16:09 -0600)
committerBorislav Petkov <bp@suse.de>
Tue, 2 Jun 2015 17:07:50 +0000 (19:07 +0200)
commit451bb7fbccdc0f5d942227913afa5dea3afd12f7
tree0e47457317b2c99328f1eb94c2f1b87c4c9fbadd
parent2ce39109a5062b06df440fbf2993ce9ab3bf6e08
EDAC, xgene: Fix cpuid abuse

The new x-gene EDAC driver incorrectly tried to figure out the version
of one of its IP blocks by looking at the version of the CPU core, which
is only vagely related.

This removes the incorrect code and instead uses the version of the IP
block in the compatible string where it belongs.

Found using build testing on x86, which does not provide the arm64
cpuid interface.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
[ Changed subnode to "apm,xgene-edac-pmd-v2", adjusted check. ]
Signed-off-by: Loc Ho <lho@apm.com>
Cc: devicetree@vger.kernel.org
Cc: dougthompson@xmission.com
Cc: ijc+devicetree@hellion.org.uk
Cc: jcm@redhat.com
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: mark.rutland@arm.com
Cc: mchehab@osg.samsung.com
Cc: patches@apm.com
Cc: robh+dt@kernel.org
Link: http://lkml.kernel.org/r/3195065.IK73o60xya@wuerfel
Signed-off-by: Borislav Petkov <bp@suse.de>
Documentation/devicetree/bindings/edac/apm-xgene-edac.txt
drivers/edac/xgene_edac.c