OSDN Git Service

EDAC, altera: Fix peripheral warnings for Cyclone5
authorThor Thayer <thor.thayer@linux.intel.com>
Wed, 5 Apr 2017 18:01:02 +0000 (13:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:17:48 +0000 (09:17 +0100)
commitd4894a600657ccf2d58ebf9af37a69b0a756f773
treeddfb571cbb0d4be839d862c9e04c69fa091e2526
parent1f7b46d22802e7adefd2c4f3d13773cb8cb35b92
EDAC, altera: Fix peripheral warnings for Cyclone5

[ Upstream commit 25b223ddfe2a557307c05fe673e09d94ae950877 ]

The peripherals' RAS functionality only exist on the Arria10 SoCFPGA.
The Cyclone5 initialization generates EDAC warnings when the peripherals
aren't found in the device tree. Fix by checking for Arria10 in the init
functions.

Signed-off-by: Thor Thayer <thor.thayer@linux.intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1491415262-5018-1-git-send-email-thor.thayer@linux.intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/edac/altera_edac.c