diff options
author | Borislav Petkov <bp@suse.de> | 2020-03-16 13:23:21 +0100 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2020-03-17 10:25:58 +0100 |
commit | 19d33357ecdf6f4d591b4c17f119bacd6ae834eb (patch) | |
tree | b0d5efde7d969e8301956b681d8583bf424220b5 /drivers | |
parent | 753039ef8b2f1078e5bff8cd42f80578bf6385b0 (diff) | |
download | linux-next-19d33357ecdf6f4d591b4c17f119bacd6ae834eb.tar.gz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/agp/amd64-agp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/agp/amd64-agp.c b/drivers/char/agp/amd64-agp.c index 594aee281977..b40edae32817 100644 --- a/drivers/char/agp/amd64-agp.c +++ b/drivers/char/agp/amd64-agp.c @@ -775,7 +775,7 @@ int __init agp_amd64_init(void) } /* First check that we have at least one AMD64 NB */ - if (!pci_dev_present(amd_nb_misc_ids)) { + if (!amd_nb_num()) { pci_unregister_driver(&agp_amd64_pci_driver); return -ENODEV; } |