EDAC, pnd2: Fix Apollo Lake DIMM detection
authorTony Luck <tony.luck@intel.com>
Wed, 28 Jun 2017 23:44:07 +0000 (16:44 -0700)
committerBorislav Petkov <bp@suse.de>
Thu, 29 Jun 2017 08:37:50 +0000 (10:37 +0200)
commit164c29244d4beb9a105102c42821f4925e4a0c7a
tree8612f51b61bcb4f3d4a8f629393660064a230007
parenta8c8261425649da58bdf08221570e5335ad33a31
EDAC, pnd2: Fix Apollo Lake DIMM detection

Non-existent or empty DIMM slots result in error return from
RD_REGP(). But we shouldn't give up on failure.

So long as we find at least one DIMM we can continue.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/20170628234407.21521-1-tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/pnd2_edac.c