diff options
-rw-r--r-- | drivers/edac/amd64_edac.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 27246aa8128d..565dc52dbb6f 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -3336,7 +3336,7 @@ static int probe_one_instance(unsigned int nid) | |||
3336 | ecc_stngs[nid] = s; | 3336 | ecc_stngs[nid] = s; |
3337 | 3337 | ||
3338 | if (!ecc_enabled(F3, nid)) { | 3338 | if (!ecc_enabled(F3, nid)) { |
3339 | ret = -ENODEV; | 3339 | ret = 0; |
3340 | 3340 | ||
3341 | if (!ecc_enable_override) | 3341 | if (!ecc_enable_override) |
3342 | goto err_enable; | 3342 | goto err_enable; |
@@ -3465,6 +3465,11 @@ static int __init amd64_edac_init(void) | |||
3465 | } | 3465 | } |
3466 | } | 3466 | } |
3467 | 3467 | ||
3468 | if (!edac_has_mcs()) { | ||
3469 | err = -ENODEV; | ||
3470 | goto err_pci; | ||
3471 | } | ||
3472 | |||
3468 | /* register stuff with EDAC MCE */ | 3473 | /* register stuff with EDAC MCE */ |
3469 | if (report_gart_errors) | 3474 | if (report_gart_errors) |
3470 | amd_report_gart_errors(true); | 3475 | amd_report_gart_errors(true); |