[PA-RISC] Fix sba_iommu compilation

klist_iter_exit() only takes one parameter.
Also fix warning by adding additional brackets.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
This commit is contained in:
Matthew Wilcox 2006-10-04 13:08:33 -06:00 коммит произвёл Matthew Wilcox
Родитель 3bdc9d0b40
Коммит ee9f4b5d95
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1320,12 +1320,12 @@ sba_ioc_init_pluto(struct parisc_device *sba, struct ioc *ioc, int ioc_num)
** the GART code to handshake on. ** the GART code to handshake on.
*/ */
klist_iter_init(&sba->dev.klist_children, &i); klist_iter_init(&sba->dev.klist_children, &i);
while (dev = next_device(&i)) { while ((dev = next_device(&i))) {
struct parisc_device *lba = to_parisc_device(dev); struct parisc_device *lba = to_parisc_device(dev);
if (IS_QUICKSILVER(lba)) if (IS_QUICKSILVER(lba))
agp_found = 1; agp_found = 1;
} }
klist_iter_exit(&sba->dev.klist_children, &i); klist_iter_exit(&i);
if (agp_found && sba_reserve_agpgart) { if (agp_found && sba_reserve_agpgart) {
printk(KERN_INFO "%s: reserving %dMb of IOVA space for agpgart\n", printk(KERN_INFO "%s: reserving %dMb of IOVA space for agpgart\n",