summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-10-26 18:02:39 +0900
committerMichel Dänzer <michel.daenzer@amd.com>2016-11-21 17:54:26 +0900
commita0881d55fe80d639d31cdfeadd6014322c037791 (patch)
tree2a6191b04c9e14aad2ff3c48da13ad6df9bbb47d /src
parent40ddc52b2ae32b17ef7eea1602fdf59b63f06f17 (diff)
Stop using generated amdgpu_device_match
Just match on PCI device ID 0x1002. Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r--src/amdgpu_probe.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c
index 52e962d..b2657b8 100644
--- a/src/amdgpu_probe.c
+++ b/src/amdgpu_probe.c
@@ -44,7 +44,6 @@
#include "amdgpu_probe.h"
#include "amdgpu_version.h"
#include "amdgpu_drv.h"
-#include "amdpciids.h"
#include "xf86.h"
@@ -59,12 +58,11 @@
#include <xf86platformBus.h>
#endif
+#include "ati_pciids_gen.h"
#include "amdgpu_chipset_gen.h"
#include "amdgpu_pci_chipset_gen.h"
-#include "amdgpu_pci_device_match_gen.h"
-
_X_EXPORT int gAMDGPUEntityIndex = -1;
/* Return the options for supported chipset 'n'; NULL otherwise */
@@ -381,6 +379,11 @@ error:
}
#endif
+static const struct pci_id_match amdgpu_device_match[] = {
+ {0x1002, PCI_MATCH_ANY, PCI_MATCH_ANY, PCI_MATCH_ANY, 0, 0, 0},
+ {0, 0, 0},
+};
+
_X_EXPORT DriverRec AMDGPU = {
AMDGPU_VERSION_CURRENT,
AMDGPU_DRIVER_NAME,