par->vid_regs = ioremap(pci_resource_start(par->vid_dev, 1), pci_resource_len(par->vid_dev, 1)); 
ret = pci_request_region(dev, 1, "gx1fb (video)"); if (ret < 0) return ret; par->vid_regs = ioremap(pci_resource_start(dev, 1), pci_resource_len(dev, 1)); 
static int __init gx1fb_map_video_memory(struct fb_info *info){	struct geodefb_par *par = info->par;	unsigned gx_base;	int fb_len;	gx_base = gx1_gx_base();	if (!gx_base)		return -ENODEV;	par->vid_dev = pci_get_device(PCI_VENDOR_ID_CYRIX,				      PCI_DEVICE_ID_CYRIX_5530_VIDEO, NULL);	if (!par->vid_dev)		return -ENODEV;	par->vid_regs = ioremap(pci_resource_start(par->vid_dev, 1),				pci_resource_len(par->vid_dev, 1));	if (!par->vid_regs)		return -ENOMEM;	par->dc_regs = ioremap(gx_base + 0x8300, 0x100);	if (!par->dc_regs)		return -ENOMEM;	info->fix.smem_start = gx_base + 0x800000;	if ((fb_len = gx1_frame_buffer_size()) < 0)		return -ENOMEM;	info->fix.smem_len = fb_len;	info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len);	if (!info->screen_base)		return -ENOMEM;	printk(KERN_INFO "%s: %d Kibyte of video memory at 0x%lx\n",	       info->fix.id, info->fix.smem_len / 1024, info->fix.smem_start);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/53eed4ec8bcd8701b9135859ec46b10a0d88ba25/gx1fb_core.c/buggy/drivers/video/geode/gx1fb_core.c