summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2016-04-27 12:21:21 +0200
committerBorislav Petkov <bp@suse.de>2016-04-27 12:30:26 +0200
commitde0336b30de1b3e3ad6b76b5ccf0b4920d328313 (patch)
treec365461488d4c41d53e30076e2551019e65013cf /drivers
parentARM: socfpga: Initialize Arria10 OCRAM ECC on startup (diff)
downloadlinux-de0336b30de1b3e3ad6b76b5ccf0b4920d328313.tar.xz
linux-de0336b30de1b3e3ad6b76b5ccf0b4920d328313.zip
EDAC, amd64_edac: Issue driver banner only on success
... and don't mislead users into thinking that the driver has loaded successfully. Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/edac/amd64_edac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index d87a47547ba5..651d96c93f22 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -3006,8 +3006,6 @@ static int __init amd64_edac_init(void)
{
int err = -ENODEV;
- printk(KERN_INFO "AMD64 EDAC driver v%s\n", EDAC_AMD64_VERSION);
-
opstate_init();
if (amd_cache_northbridges() < 0)
@@ -3036,6 +3034,8 @@ static int __init amd64_edac_init(void)
amd64_err("%s on 32-bit is unsupported. USE AT YOUR OWN RISK!\n", EDAC_MOD_STR);
#endif
+ printk(KERN_INFO "AMD64 EDAC driver v%s\n", EDAC_AMD64_VERSION);
+
return 0;
err_no_instances: