Skip to content

Commit

Permalink
[PATCH] pci: remove deprecates
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amit Gud authored and Greg Kroah-Hartman committed Jun 28, 2005
1 parent 120bb42 commit 881a8c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/moxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 881a8c1

Please sign in to comment.