summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c6
-rw-r--r--sys/pci/pci.c6
-rw-r--r--sys/pci/pcibus.h2
3 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index d8b134c..a1b295b 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 d8b134c..a1b295b 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 aa3c46a..3ff8205 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
OpenPOWER on IntegriCloud