From d81f0dc8c596c9bc85a95a0a9f88a16700f05b66 Mon Sep 17 00:00:00 2001 From: Bjorn Helgaas Date: Thu, 16 Aug 2012 16:46:08 -0600 Subject: [PATCH] --- yaml --- r: 324218 b: refs/heads/master c: 0a4af1473a7d81fc90e195fb5b241ab5fcf933ca h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/char/agp/sgi-agp.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 2d5a166e631e..e903fa690994 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0b79ca2a800d1a2ed0386886c8358217f3371592 +refs/heads/master: 0a4af1473a7d81fc90e195fb5b241ab5fcf933ca diff --git a/trunk/drivers/char/agp/sgi-agp.c b/trunk/drivers/char/agp/sgi-agp.c index 192000377737..3a5af2f9b015 100644 --- a/trunk/drivers/char/agp/sgi-agp.c +++ b/trunk/drivers/char/agp/sgi-agp.c @@ -289,12 +289,11 @@ static int __devinit agp_sgi_init(void) j = 0; list_for_each_entry(info, &tioca_list, ca_list) { - struct list_head *tmp; if (list_empty(info->ca_devices)) continue; - list_for_each(tmp, info->ca_devices) { + list_for_each_entry(pdev, info->ca_devices, bus_list) { u8 cap_ptr; - pdev = pci_dev_b(tmp); + if (pdev->class != (PCI_CLASS_DISPLAY_VGA << 8)) continue; cap_ptr = pci_find_capability(pdev, PCI_CAP_ID_AGP);