From: Doug Thompson Date: Mon, 3 Aug 2009 10:37:06 +0000 (+0200) Subject: amd64_edac: fix ECC checking X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=126b67b8d26f6623d199aa59279f2e3243f2144c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git amd64_edac: fix ECC checking On the good path of BIOS enabled ECC and no override, the value returned is 1 by omission and thus is deemed failing by the probe-function. Allow proper module initialization by clearing the retval explicitly. Signed-off-by: Doug Thompson Signed-off-by: Borislav Petkov --- diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 24964c1d0af9..5fa924d61b10 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2977,6 +2977,9 @@ static int amd64_check_ecc_enabled(struct amd64_pvt *pvt) "ECC is enabled by BIOS, Proceeding " "with EDAC module initialization\n"); + /* Signal good ECC status */ + ret = 0; + /* CLEAR the override, since BIOS controlled it */ ecc_enable_override = 0; }