EDAC, amd64: Move global code out of instance functions
authorYazen Ghannam <Yazen.Ghannam@amd.com>
Tue, 24 Jan 2017 22:32:25 +0000 (16:32 -0600)
committerBorislav Petkov <bp@suse.de>
Sat, 28 Jan 2017 12:08:10 +0000 (13:08 +0100)
commit234365f56e75d91c5bd7fbde2b8a9b02851845b8
treec276d38f05b75361c2b883ab09a8b5e5b67525c4
parent2b9b2c465928260f40e2f570c953881bff291bef
EDAC, amd64: Move global code out of instance functions

We have a few functions that register/unregister an ECC error decoding
routine. These functions are called when we init/remove instances.
However, they are global and so don't need to be registered/unregistered
multiple times.

So move them out of the init/remove instance functions and into the
module init/exit routines.

Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1485297149-13733-4-git-send-email-Yazen.Ghannam@amd.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/amd64_edac.c