x86/amd_nb, char/amd64-agp: Use amd_nb_num() accessor
authorBorislav Petkov <bp@suse.de>
Mon, 16 Mar 2020 12:23:21 +0000 (13:23 +0100)
committerBorislav Petkov <bp@suse.de>
Tue, 17 Mar 2020 09:25:58 +0000 (10:25 +0100)
commit19d33357ecdf6f4d591b4c17f119bacd6ae834eb
treeb0d5efde7d969e8301956b681d8583bf424220b5
parent753039ef8b2f1078e5bff8cd42f80578bf6385b0
x86/amd_nb, char/amd64-agp: Use amd_nb_num() accessor

... to find whether there are northbridges present on the
system. Convert the last forgotten user and therefore, unexport
amd_nb_misc_ids[] too.

Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Michal Kubecek <mkubecek@suse.cz>
Cc: Yazen Ghannam <yazen.ghannam@amd.com>
Link: https://lkml.kernel.org/r/20200316150725.925-1-bp@alien8.de
arch/x86/include/asm/amd_nb.h
arch/x86/kernel/amd_nb.c
drivers/char/agp/amd64-agp.c