EDAC/amd64: Remove early_channel_count()
authorYazen Ghannam <yazen.ghannam@amd.com>
Fri, 27 Jan 2023 17:04:02 +0000 (17:04 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Thu, 9 Feb 2023 13:43:39 +0000 (14:43 +0100)
commitc4605bde334367b22bbf43cbbef0d1b7c75433dc
tree7e5664d9886d96cdb81ea01fd05a89c1aed8e849
parentcf981562e6270397a2b0dc871a1f11ccc2a687e8
EDAC/amd64: Remove early_channel_count()

The early_channel_count() function seems to have been useful in the past
for knowing how many EDAC mci structures to populate. However, this is no
longer needed as the maximum channel count for a system is used instead.

Remove the early_channel_count() helper functions and related code. Use the
size of the channel layer when iterating over channel structures.

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-6-yazen.ghannam@amd.com
drivers/edac/amd64_edac.c
drivers/edac/amd64_edac.h