diff options
-rw-r--r-- | drivers/edac/amd64_edac.c | 6 | ||||
-rw-r--r-- | drivers/edac/amd64_edac.h | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 565dc52dbb6f..82dab1692264 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -3440,8 +3440,11 @@ static int __init amd64_edac_init(void) | |||
3440 | int err = -ENODEV; | 3440 | int err = -ENODEV; |
3441 | int i; | 3441 | int i; |
3442 | 3442 | ||
3443 | if (!x86_match_cpu(amd64_cpuids)) | ||
3444 | return -ENODEV; | ||
3445 | |||
3443 | if (amd_cache_northbridges() < 0) | 3446 | if (amd_cache_northbridges() < 0) |
3444 | goto err_ret; | 3447 | return -ENODEV; |
3445 | 3448 | ||
3446 | opstate_init(); | 3449 | opstate_init(); |
3447 | 3450 | ||
@@ -3497,7 +3500,6 @@ err_free: | |||
3497 | kfree(ecc_stngs); | 3500 | kfree(ecc_stngs); |
3498 | ecc_stngs = NULL; | 3501 | ecc_stngs = NULL; |
3499 | 3502 | ||
3500 | err_ret: | ||
3501 | return err; | 3503 | return err; |
3502 | } | 3504 | } |
3503 | 3505 | ||
diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index 469506fcc0fc..6acbfd3e0158 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/slab.h> | 16 | #include <linux/slab.h> |
17 | #include <linux/mmzone.h> | 17 | #include <linux/mmzone.h> |
18 | #include <linux/edac.h> | 18 | #include <linux/edac.h> |
19 | #include <asm/cpu_device_id.h> | ||
19 | #include <asm/msr.h> | 20 | #include <asm/msr.h> |
20 | #include "edac_module.h" | 21 | #include "edac_module.h" |
21 | #include "mce_amd.h" | 22 | #include "mce_amd.h" |