[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>
This commit is contained in:
parent
c4dd45823f
commit
146a209967
1 changed files with 2 additions and 0 deletions
|
@ -288,6 +288,8 @@ 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) {
|
||||
u8 cap_ptr;
|
||||
pdev = pci_dev_b(tmp);
|
||||
|
|
Loading…
Add table
Reference in a new issue