Commit 146a2099 authored by Dave Jones's avatar Dave Jones

[AGPGART] Fix up sgi-agp bug with no devices on bus.

Signed-off-by: default avatarEric Kunze <ekunze@sgi.com>
Signed-off-by: default avatarDave Jones <davej@redhat.com>
parent c4dd4582
...@@ -288,6 +288,8 @@ static int __devinit agp_sgi_init(void) ...@@ -288,6 +288,8 @@ static int __devinit agp_sgi_init(void)
j = 0; j = 0;
list_for_each_entry(info, &tioca_list, ca_list) { list_for_each_entry(info, &tioca_list, ca_list) {
struct list_head *tmp; struct list_head *tmp;
if (list_empty(info->ca_devices))
continue;
list_for_each(tmp, info->ca_devices) { list_for_each(tmp, info->ca_devices) {
u8 cap_ptr; u8 cap_ptr;
pdev = pci_dev_b(tmp); pdev = pci_dev_b(tmp);
......
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