From: Amit Gud Date: Tue, 12 Apr 2005 13:33:33 +0000 (+0530) Subject: [PATCH] pci: remove deprecates X-Git-Tag: v2.6.13-rc1~39^2~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=881a8c120acf7ec09c90289e2996b7c70f51e996;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [PATCH] pci: remove deprecates Replace pci_find_device() with more safer pci_get_device(). Signed-off-by: Amit Gud Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/char/moxa.c b/drivers/char/moxa.c index 7c24fbe..95f7046 100644 --- a/drivers/char/moxa.c +++ b/drivers/char/moxa.c @@ -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;