amd64_edac: make driver loading more robust
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 21 Dec 2009 17:13:01 +0000 (18:13 +0100)
committerBorislav Petkov <borislav.petkov@amd.com>
Thu, 24 Dec 2009 10:07:07 +0000 (11:07 +0100)
commit56b34b91e22313294154cee0c16e294cf8a45b61
tree59ae221911c7bef88711ba3054204e99d47f93a6
parent8f68ed9728193b1f2fb53ba06031b06bd8b3d1b4
amd64_edac: make driver loading more robust

Currently, the module does not initialize fully when the DIMMs aren't
ECC but remains still loaded. Propagate the error when no instance of
the driver is properly initialized and prevent further loading.

Reorganize and polish error handling in amd64_edac_init() while at it.

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