aboutsummaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2018-07-07 15:25:11 +0000
committerWarner Losh <imp@FreeBSD.org>2018-07-07 15:25:11 +0000
commit971b5f76327451eda17260f799aad58effbf6a80 (patch)
treeaf2dedc7b79f9dbec330d2aaba66f11d720f62b3 /sys/compat
parentf06b6fdcb168526e4b93ff5dc6c1ba55979cc871 (diff)
downloadsrc-971b5f76327451eda17260f799aad58effbf6a80.tar.gz
src-971b5f76327451eda17260f799aad58effbf6a80.zip
Create PCI_MATCH and pci_match_device
Create a covenience function to match PCI device IDs. It's about 15 years overdue. Differential Revision: https://reviews.freebsd.org/D15999
Notes
Notes: svn path=/head/; revision=336066
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linsysfs/linsysfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linsysfs/linsysfs.c b/sys/compat/linsysfs/linsysfs.c
index dd28da5f2e0a..8aaa61ccc64f 100644
--- a/sys/compat/linsysfs/linsysfs.c
+++ b/sys/compat/linsysfs/linsysfs.c
@@ -273,6 +273,7 @@ linsysfs_fill_vgapci(PFS_FILL_ARGS)
return (0);
}
+#undef PCI_DEV
#define PCI_DEV "pci"
#define DRMN_DEV "drmn"
static int