diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-05 13:53:24 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-11-05 13:53:24 -0500 |
commit | bd901751e7ab9ddba335b19643605b3cf8517078 (patch) | |
tree | 1cbe73d100f80cc93e8e8f662f7399dd6f05a94f /drivers | |
parent | d39b7dd1dcbf394a1cb897457c862dafe9a20ac5 (diff) | |
parent | 17adea01b9606e416ea5116a27d02d47fe7e6c8d (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/bp/bp:
amd64_edac: fix CECCs reporting
amd64_edac: fix a wrong goto clause in amd64_edac.c
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/edac/amd64_edac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index d4560d9d5a83..a38831c82649 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c | |||
@@ -2254,7 +2254,7 @@ static inline void __amd64_decode_bus_error(struct mem_ctl_info *mci, | |||
2254 | { | 2254 | { |
2255 | u32 ec = ERROR_CODE(info->nbsl); | 2255 | u32 ec = ERROR_CODE(info->nbsl); |
2256 | u32 xec = EXT_ERROR_CODE(info->nbsl); | 2256 | u32 xec = EXT_ERROR_CODE(info->nbsl); |
2257 | int ecc_type = info->nbsh & (0x3 << 13); | 2257 | int ecc_type = (info->nbsh >> 13) & 0x3; |
2258 | 2258 | ||
2259 | /* Bail early out if this was an 'observed' error */ | 2259 | /* Bail early out if this was an 'observed' error */ |
2260 | if (PP(ec) == K8_NBSL_PP_OBS) | 2260 | if (PP(ec) == K8_NBSL_PP_OBS) |
@@ -3163,7 +3163,7 @@ static int __init amd64_edac_init(void) | |||
3163 | opstate_init(); | 3163 | opstate_init(); |
3164 | 3164 | ||
3165 | if (cache_k8_northbridges() < 0) | 3165 | if (cache_k8_northbridges() < 0) |
3166 | goto err_exit; | 3166 | return err; |
3167 | 3167 | ||
3168 | err = pci_register_driver(&amd64_pci_driver); | 3168 | err = pci_register_driver(&amd64_pci_driver); |
3169 | if (err) | 3169 | if (err) |
@@ -3189,8 +3189,6 @@ static int __init amd64_edac_init(void) | |||
3189 | 3189 | ||
3190 | err_2nd_stage: | 3190 | err_2nd_stage: |
3191 | debugf0("2nd stage failed\n"); | 3191 | debugf0("2nd stage failed\n"); |
3192 | |||
3193 | err_exit: | ||
3194 | pci_unregister_driver(&amd64_pci_driver); | 3192 | pci_unregister_driver(&amd64_pci_driver); |
3195 | 3193 | ||
3196 | return err; | 3194 | return err; |