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)
committerBorislav Petkov <bp@suse.de>
Thu, 6 Apr 2017 09:42:38 +0000 (11:42 +0200)
commit25b223ddfe2a557307c05fe673e09d94ae950877
tree80c40380a57553b80f93f1ddac785e239ce8758a
parent621c4fe3cca5a0bc421916696e0c5e764d0a510b
EDAC, altera: Fix peripheral warnings for Cyclone5

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>
drivers/edac/altera_edac.c