EDAC, amd64_edac: Issue driver banner only on success
authorBorislav Petkov <bp@suse.de>
Wed, 27 Apr 2016 10:21:21 +0000 (12:21 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 27 Apr 2016 10:30:26 +0000 (12:30 +0200)
... and don't mislead users into thinking that the driver has loaded
successfully.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c

index d87a47547ba59933d719d39cf1fe1460df2eeb55..651d96c93f22ddff37a3b8bcd405133cfcd1a166 100644 (file)
@@ -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: