diff options
author | Yazen Ghannam <[email protected]> | 2016-11-17 17:57:30 -0500 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2016-11-21 10:24:20 +0100 |
commit | e7934b70d76557551b205449cba1af2153a48e42 (patch) | |
tree | 79ee3ed4f262d29a29de091ba62b0e394fc708a1 | |
parent | 5c332202f805170436b210938fe3ad7f6b29bdbc (diff) |
EDAC, amd64: Change target of pci_name from F2 to F3
AMD Fam17h will not be using PCI function 2 for EDAC, but will continue
to use function 3. So let's get the name of F3 instead of F2 to support
Fam17h and previous families.
Signed-off-by: Yazen Ghannam <[email protected]>
Cc: Aravind Gopalakrishnan <[email protected]>
Cc: linux-edac <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Borislav Petkov <[email protected]>
-rw-r--r-- | drivers/edac/amd64_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index ee181c53626f..a38b82de0b6f 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2703,7 +2703,7 @@ static void setup_mci_misc_attrs(struct mem_ctl_info *mci, mci->mod_name = EDAC_MOD_STR; mci->mod_ver = EDAC_AMD64_VERSION; mci->ctl_name = fam->ctl_name; - mci->dev_name = pci_name(pvt->F2); + mci->dev_name = pci_name(pvt->F3); mci->ctl_page_to_phys = NULL; /* memory scrubber interface */ |