EDAC/amd64: Split init_csrows() into dct/umc functions
authorMuralidhara M K <muralidhara.mk@amd.com>
Fri, 27 Jan 2023 17:04:17 +0000 (17:04 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 24 Mar 2023 12:03:21 +0000 (13:03 +0100)
commit6fb8b5fb9e324c617092d61bbe193aa6a49ff2dc
tree9918786febd4d7c93db82c98e92ad3887565c3d5
parentf6a4b4a1aa1647a5a9c58aeef099a7a8593151fe
EDAC/amd64: Split init_csrows() into dct/umc functions

Call them from their respective setup_mci_misc_attrs() paths.

Also, drop the check for an "empty" device, i.e. one without memory.
This is redundant and already done in instance_has_memory() earlier in
the init path.

No functional change is intended.

  [ Yazen: rebased/reworked patch and reworded commit message. ]

Signed-off-by: Muralidhara M K <muralidhara.mk@amd.com>
Co-developed-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Signed-off-by: Naveen Krishna Chatradhi <naveenkrishna.chatradhi@amd.com>
Co-developed-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230127170419.1824692-21-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c