summaryrefslogtreecommitdiffstats
path: root/drivers/parisc/sba_iommu.c
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2006-10-04 21:08:33 +0200
committerMatthew Wilcox <willy@hera.kernel.org>2006-10-05 03:48:17 +0200
commitee9f4b5d95d03d1546f0d06cbe384bd4ab97bcba (patch)
treef10667b8cab7501199b0ab1878deda8d6914f58a /drivers/parisc/sba_iommu.c
parent[S390] cio: improve unit check handling for internal operations (diff)
downloadlinux-ee9f4b5d95d03d1546f0d06cbe384bd4ab97bcba.tar.xz
linux-ee9f4b5d95d03d1546f0d06cbe384bd4ab97bcba.zip
[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>
Diffstat (limited to 'drivers/parisc/sba_iommu.c')
-rw-r--r--drivers/parisc/sba_iommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/sba_iommu.c b/drivers/parisc/sba_iommu.c
index 294c1117098d..f1e7ccd5475b 100644
--- a/drivers/parisc/sba_iommu.c
+++ b/drivers/parisc/sba_iommu.c
@@ -1320,12 +1320,12 @@ sba_ioc_init_pluto(struct parisc_device *sba, struct ioc *ioc, int ioc_num)
** the GART code to handshake on.
*/
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);
if (IS_QUICKSILVER(lba))
agp_found = 1;
}
- klist_iter_exit(&sba->dev.klist_children, &i);
+ klist_iter_exit(&i);
if (agp_found && sba_reserve_agpgart) {
printk(KERN_INFO "%s: reserving %dMb of IOVA space for agpgart\n",