]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] pci: remove deprecates
authorAmit Gud <gud@eth.net>
Tue, 12 Apr 2005 13:33:33 +0000 (19:03 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jun 2005 04:52:38 +0000 (21:52 -0700)
Replace pci_find_device() with more safer pci_get_device().

Signed-off-by: Amit Gud <gud@eth.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/moxa.c

index 7c24fbe831f83847df9eb859ec8d4983305b6fc7..95f7046ff059184c5c7b8024e83881c922c25289 100644 (file)
@@ -451,7 +451,7 @@ static int __init moxa_init(void)
                int n = (sizeof(moxa_pcibrds) / sizeof(moxa_pcibrds[0])) - 1;
                i = 0;
                while (i < n) {
-                       while ((p = pci_find_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
+                       while ((p = pci_get_device(moxa_pcibrds[i].vendor, moxa_pcibrds[i].device, p))!=NULL)
                        {
                                if (pci_enable_device(p))
                                        continue;