]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[ixj] Add pci dev table for module auto loading.
authorBen Collins <bcollins@ubuntu.com>
Wed, 18 Oct 2006 12:45:30 +0000 (08:45 -0400)
committerBen Collins <bcollins@ubuntu.com>
Wed, 18 Oct 2006 12:45:30 +0000 (08:45 -0400)
Signed-off-by: Ben Collins <bcollins@ubuntu.com>
drivers/telephony/ixj.c

index f6b2948ab28856dad684763d2e9e4c52102bf54e..1b601b6cf2a2b78c148395d641955523e07b7515 100644 (file)
@@ -284,6 +284,14 @@ static int samplerate = 100;
 
 module_param(ixjdebug, int, 0);
 
+static struct pci_device_id ixj_pci_tbl[] __devinitdata = {
+       { PCI_VENDOR_ID_QUICKNET, PCI_DEVICE_ID_QUICKNET_XJ,
+         PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+       { }
+};
+
+MODULE_DEVICE_TABLE(pci, ixj_pci_tbl);
+
 /************************************************************************
 *
 * ixjdebug meanings are now bit mapped instead of level based
@@ -7683,7 +7691,8 @@ static int __init ixj_probe_pci(int *cnt)
        IXJ *j = NULL;
 
        for (i = 0; i < IXJMAX - *cnt; i++) {
-               pci = pci_find_device(0x15E2, 0x0500, pci);
+               pci = pci_find_device(PCI_VENDOR_ID_QUICKNET,
+                                     PCI_DEVICE_ID_QUICKNET_XJ, pci);
                if (!pci)
                        break;