diff options
Diffstat (limited to 'drivers/edac')
-rw-r--r-- | drivers/edac/mce_amd.c | 6 | ||||
-rw-r--r-- | drivers/edac/tile_edac.c | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index 36e1486eb9aa..d0c372e30de4 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c | |||
@@ -754,9 +754,7 @@ static int __init mce_amd_init(void) | |||
754 | if (c->x86_vendor != X86_VENDOR_AMD) | 754 | if (c->x86_vendor != X86_VENDOR_AMD) |
755 | return 0; | 755 | return 0; |
756 | 756 | ||
757 | if ((c->x86 < 0xf || c->x86 > 0x12) && | 757 | if (c->x86 < 0xf || c->x86 > 0x15) |
758 | (c->x86 != 0x14 || c->x86_model > 0xf) && | ||
759 | (c->x86 != 0x15 || c->x86_model > 0xf)) | ||
760 | return 0; | 758 | return 0; |
761 | 759 | ||
762 | fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL); | 760 | fam_ops = kzalloc(sizeof(struct amd_decoder_ops), GFP_KERNEL); |
@@ -797,7 +795,7 @@ static int __init mce_amd_init(void) | |||
797 | break; | 795 | break; |
798 | 796 | ||
799 | default: | 797 | default: |
800 | printk(KERN_WARNING "Huh? What family is that: %d?!\n", c->x86); | 798 | printk(KERN_WARNING "Huh? What family is it: 0x%x?!\n", c->x86); |
801 | kfree(fam_ops); | 799 | kfree(fam_ops); |
802 | return -EINVAL; | 800 | return -EINVAL; |
803 | } | 801 | } |
diff --git a/drivers/edac/tile_edac.c b/drivers/edac/tile_edac.c index 1d5cf06f6c6b..e99d00976189 100644 --- a/drivers/edac/tile_edac.c +++ b/drivers/edac/tile_edac.c | |||
@@ -145,7 +145,11 @@ static int __devinit tile_edac_mc_probe(struct platform_device *pdev) | |||
145 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; | 145 | mci->edac_ctl_cap = EDAC_FLAG_SECDED; |
146 | 146 | ||
147 | mci->mod_name = DRV_NAME; | 147 | mci->mod_name = DRV_NAME; |
148 | #ifdef __tilegx__ | ||
149 | mci->ctl_name = "TILEGx_Memory_Controller"; | ||
150 | #else | ||
148 | mci->ctl_name = "TILEPro_Memory_Controller"; | 151 | mci->ctl_name = "TILEPro_Memory_Controller"; |
152 | #endif | ||
149 | mci->dev_name = dev_name(&pdev->dev); | 153 | mci->dev_name = dev_name(&pdev->dev); |
150 | mci->edac_check = tile_edac_check; | 154 | mci->edac_check = tile_edac_check; |
151 | 155 | ||