amd64_edac: make driver loading more robust
authorBorislav Petkov <borislav.petkov@amd.com>
Mon, 21 Dec 2009 17:13:01 +0000 (18:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 6 Jan 2010 23:05:14 +0000 (15:05 -0800)
commit15383230c0603460f1479610b3dc59e70dc73611
treef9869d06083b66a86bdfe2316a31c70d1c530137
parent44a529c6b32a9254cacc0d0c6423967883d8ebcd
amd64_edac: make driver loading more robust

commit 56b34b91e22313294154cee0c16e294cf8a45b61 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/edac/amd64_edac.c