amd64_edac: fix ECC checking
authorDoug Thompson <dougthompson@xmission.com>
Mon, 3 Aug 2009 10:37:06 +0000 (12:37 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Mon, 3 Aug 2009 14:54:20 +0000 (16:54 +0200)
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 <dougthompson@xmission.com>
Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c

index 24964c1d0af9faa2cb3588dae9b09bc1c14bf8ee..5fa924d61b10328fcf0accde1461b497adde49a4 100644 (file)
@@ -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;
        }