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 {
static int __init pm2pci_detect(struct pm2fb_info* p) {
struct pm2pci_par* pci=&p->board_par.pci;
struct pci_dev* dev;
struct pci_dev* dev = NULL;
int i;
unsigned char* m;
#ifdef __sparc__
......@@ -1192,7 +1192,7 @@ static int __init pm2pci_detect(struct pm2fb_info* p) {
}
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++)
if (pm2pci_cards[i].vendor == dev->vendor &&
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