amd64_edac: Check ECC capabilities initially
authorBorislav Petkov <borislav.petkov@amd.com>
Fri, 15 Oct 2010 15:44:04 +0000 (17:44 +0200)
committerBorislav Petkov <borislav.petkov@amd.com>
Fri, 7 Jan 2011 10:34:02 +0000 (11:34 +0100)
commit2299ef7114000f8e403797b7f9a972f54bc05fad
treebcce876e2bcd05d168e43422d3ad82a1a2419ae3
parentae7bb7c679e7ddba6c52d1a78a30f9bc868d9738
amd64_edac: Check ECC capabilities initially

Rework the code to check the hardware ECC capabilities at PCI probing
time. We do all further initialization only if we actually can/have ECC
enabled.

While at it:
0. Fix function naming.
1. Simplify/clarify debug output.
2. Remove amd64_ prefix from the static functions
3. Reorganize code.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
drivers/edac/amd64_edac.c