patch-2.3.37 linux/drivers/video/rivafb.c
Next file: linux/drivers/video/tdfxfb.c
Previous file: linux/drivers/video/pm2fb.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Thu Jan 6 10:30:52 2000
- Orig file:
v2.3.36/linux/drivers/video/rivafb.c
- Orig date:
Thu Nov 18 20:25:37 1999
diff -u --recursive --new-file v2.3.36/linux/drivers/video/rivafb.c linux/drivers/video/rivafb.c
@@ -1,7 +1,7 @@
/*
* linux/drivers/video/rivafb.c - nVidia RIVA 128/TNT/TNT2 fb driver
*
- * Copyright 1999 Jeff Garzik <jgarzik@pobox.com>
+ * Copyright 1999 Jeff Garzik <jgarzik@mandrakesoft.com>
*
* Contributors:
*
@@ -622,12 +622,12 @@
rinfo->ctrl_base_phys = rinfo->pd->resource[0].start;
rinfo->fb_base_phys = rinfo->pd->resource[1].start;
- __request_region(&ioport_resource, 0x3C0, 32, "rivafb");
+ request_region(0x3C0, 32, "rivafb");
- if (!__request_region (&iomem_resource, rinfo->ctrl_base_phys,
- rinfo->base0_region_size, "rivafb") ||
- !__request_region (&iomem_resource, rinfo->fb_base_phys,
- rinfo->base1_region_size, "rivafb")) {
+ if (!request_mem_region(rinfo->ctrl_base_phys,
+ rinfo->base0_region_size, "rivafb") ||
+ !request_mem_region(rinfo->fb_base_phys, rinfo->base1_region_size,
+ "rivafb")) {
printk (KERN_ERR PFX "cannot reserve MMIO region\n");
return -ENXIO;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)