aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Jones <davej@redhat.com>2005-11-04 18:32:08 -0500
committerDave Jones <davej@redhat.com>2005-11-04 18:32:08 -0500
commit146a209967886e57eb34b4cdb85ca52078a4f8cc (patch)
tree7cfc77f795eec9d449c070ea5b192636f8850f1c
parentc4dd45823fbdaaa4748cd8c7704334f249914405 (diff)
[AGPGART] Fix up sgi-agp bug with no devices on bus.
Signed-off-by: Eric Kunze <ekunze@sgi.com> Signed-off-by: Dave Jones <davej@redhat.com>
-rw-r--r--drivers/char/agp/sgi-agp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/agp/sgi-agp.c b/drivers/char/agp/sgi-agp.c
index d3aa159c9dec..53eeb293d174 100644
--- a/drivers/char/agp/sgi-agp.c
+++ b/drivers/char/agp/sgi-agp.c
@@ -288,6 +288,8 @@ static int __devinit agp_sgi_init(void)
288 j = 0; 288 j = 0;
289 list_for_each_entry(info, &tioca_list, ca_list) { 289 list_for_each_entry(info, &tioca_list, ca_list) {
290 struct list_head *tmp; 290 struct list_head *tmp;
291 if (list_empty(info->ca_devices))
292 continue;
291 list_for_each(tmp, info->ca_devices) { 293 list_for_each(tmp, info->ca_devices) {
292 u8 cap_ptr; 294 u8 cap_ptr;
293 pdev = pci_dev_b(tmp); 295 pdev = pci_dev_b(tmp);