patch-2.3.45 linux/drivers/video/igafb.c

Next file: linux/drivers/video/macfb.c
Previous file: linux/drivers/video/fbmem.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.44/linux/drivers/video/igafb.c linux/drivers/video/igafb.c
@@ -713,8 +713,8 @@
 	info->mmap_map = kmalloc(4 * sizeof(*info->mmap_map), GFP_ATOMIC);
 	if (!info->mmap_map) {
 		printk("igafb_init: can't alloc mmap_map\n");
-		iounmap(info->io_base);
-		iounmap((void *)info->frame_buffer);
+		iounmap((void *)info->io_base);
+		iounmap(info->frame_buffer);
                 kfree(info);
 		return -ENOMEM;
 	}
@@ -768,8 +768,8 @@
 #endif
 
 	if (!iga_init(info)) {
-		iounmap(info->io_base);
-		iounmap((void *)info->frame_buffer);
+		iounmap((void *)info->io_base);
+		iounmap(info->frame_buffer);
 		if (info->mmap_map)
 			kfree(info->mmap_map);
 		kfree(info);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)