summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c2
-rw-r--r--sys/pci/pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index a1b295b6c64c..399cfe6de652 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -957,7 +957,7 @@ int pci_register_lkm (struct pci_device *dvp, int if_revision)
{
struct pci_lkm *lkm;
- if (if_version != 0) {
+ if (if_revision != 0) {
return -1;
}
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index a1b295b6c64c..399cfe6de652 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -957,7 +957,7 @@ int pci_register_lkm (struct pci_device *dvp, int if_revision)
{
struct pci_lkm *lkm;
- if (if_version != 0) {
+ if (if_revision != 0) {
return -1;
}