Commit 7d0d5418 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] PCI: remove usage of pci_for_each_dev() in drivers/video/pm2fb.c

parent b73faa91
...@@ -1178,7 +1178,7 @@ struct { ...@@ -1178,7 +1178,7 @@ struct {
static int __init pm2pci_detect(struct pm2fb_info* p) { static int __init pm2pci_detect(struct pm2fb_info* p) {
struct pm2pci_par* pci=&p->board_par.pci; struct pm2pci_par* pci=&p->board_par.pci;
struct pci_dev* dev; struct pci_dev* dev = NULL;
int i; int i;
unsigned char* m; unsigned char* m;
#ifdef __sparc__ #ifdef __sparc__
...@@ -1192,7 +1192,7 @@ static int __init pm2pci_detect(struct pm2fb_info* p) { ...@@ -1192,7 +1192,7 @@ static int __init pm2pci_detect(struct pm2fb_info* p) {
} }
DPRINTK("scanning PCI bus for known chipsets...\n"); DPRINTK("scanning PCI bus for known chipsets...\n");
pci_for_each_dev(dev) { while ((dev = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, dev)) != NULL) {
for (i = 0; pm2pci_cards[i].vendor; i++) for (i = 0; pm2pci_cards[i].vendor; i++)
if (pm2pci_cards[i].vendor == dev->vendor && if (pm2pci_cards[i].vendor == dev->vendor &&
pm2pci_cards[i].device == dev->device) { pm2pci_cards[i].device == dev->device) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment