diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index d8b134c6cf84..a1b295b6c64c 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -953,10 +953,14 @@ static void pci_rescan() **======================================================== */ -int pci_register_lkm (struct pci_device *dvp) +int pci_register_lkm (struct pci_device *dvp, int if_revision) { struct pci_lkm *lkm; + if (if_version != 0) { + return -1; + } + if (!dvp || !dvp->pd_probe || !dvp->pd_attach) { return -1; } diff --git a/sys/pci/pci.c b/sys/pci/pci.c index d8b134c6cf84..a1b295b6c64c 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -953,10 +953,14 @@ static void pci_rescan() **======================================================== */ -int pci_register_lkm (struct pci_device *dvp) +int pci_register_lkm (struct pci_device *dvp, int if_revision) { struct pci_lkm *lkm; + if (if_version != 0) { + return -1; + } + if (!dvp || !dvp->pd_probe || !dvp->pd_attach) { return -1; } diff --git a/sys/pci/pcibus.h b/sys/pci/pcibus.h index aa3c46a32ac1..3ff820577aa4 100644 --- a/sys/pci/pcibus.h +++ b/sys/pci/pcibus.h @@ -94,6 +94,6 @@ struct pcibus { extern struct linker_set pcibus_set; -int pci_register_lkm (struct pci_device *dvp); +int pci_register_lkm (struct pci_device *dvp, int if_revision); #endif