ide: add ide_set_dma() helper (v2)
[powerpc.git] / drivers / parisc / sba_iommu.c
index 294c111..76a29da 100644 (file)
@@ -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",
@@ -1799,7 +1799,7 @@ sba_proc_open(struct inode *i, struct file *f)
        return single_open(f, &sba_proc_info, NULL);
 }
 
-static struct file_operations sba_proc_fops = {
+static const struct file_operations sba_proc_fops = {
        .owner = THIS_MODULE,
        .open = sba_proc_open,
        .read = seq_read,
@@ -1831,7 +1831,7 @@ sba_proc_bitmap_open(struct inode *i, struct file *f)
        return single_open(f, &sba_proc_bitmap_info, NULL);
 }
 
-static struct file_operations sba_proc_bitmap_fops = {
+static const struct file_operations sba_proc_bitmap_fops = {
        .owner = THIS_MODULE,
        .open = sba_proc_bitmap_open,
        .read = seq_read,