Skip to content

Commit

Permalink
EDAC, amd64_edac: Issue driver banner only on success
Browse files Browse the repository at this point in the history
... and don't mislead users into thinking that the driver has loaded
successfully.

Signed-off-by: Borislav Petkov <bp@suse.de>
  • Loading branch information
Borislav Petkov committed Apr 27, 2016
1 parent c5fb04c commit de0336b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/edac/amd64_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit de0336b

Please sign in to comment.