struct sis_video_info *ivideo = pci_get_drvdata(pdev); struct fb_info        *sis_fb_info = ivideo->memyselfandi; int                   registered = ivideo->registered; 
struct sis_video_info	*ivideo = pci_get_drvdata(pdev); struct fb_info		*sis_fb_info = ivideo->memyselfandi; int			registered = ivideo->registered; int			modechanged = ivideo->modechanged;  #ifdef SIS_OLD_CONFIG_COMPAT if(ivideo->ioctl32registered) { int ret; ret =  unregister_ioctl32_conversion(FBIO_ALLOC); ret |= unregister_ioctl32_conversion(FBIO_FREE); ret |= unregister_ioctl32_conversion(FBIOGET_VBLANK); ret |= unregister_ioctl32_conversion(SISFB_GET_INFO_SIZE); ret |= unregister_ioctl32_conversion(SISFB_GET_INFO); ret |= unregister_ioctl32_conversion(SISFB_GET_TVPOSOFFSET); ret |= unregister_ioctl32_conversion(SISFB_SET_TVPOSOFFSET); ret |= unregister_ioctl32_conversion(SISFB_SET_LOCK); ret |= unregister_ioctl32_conversion(SISFB_GET_VBRSTATUS); ret |= unregister_ioctl32_conversion(SISFB_GET_AUTOMAXIMIZE); ret |= unregister_ioctl32_conversion(SISFB_SET_AUTOMAXIMIZE); ret |= unregister_ioctl32_conversion(SISFB_COMMAND); if(ret) printk(KERN_ERR "sisfb: Error unregistering ioctl32 translations\n"); } #endif 
static void __devexit sisfb_remove(struct pci_dev *pdev){	struct sis_video_info *ivideo = pci_get_drvdata(pdev);	struct fb_info        *sis_fb_info = ivideo->memyselfandi;	int                   registered = ivideo->registered;	/* Unmap */	iounmap(ivideo->video_vbase);	iounmap(ivideo->mmio_vbase);	vfree(ivideo->bios_abase);	/* Release mem regions */	release_mem_region(ivideo->video_base, ivideo->video_size);	release_mem_region(ivideo->mmio_base, ivideo->mmio_size);#ifdef CONFIG_MTRR	/* Release MTRR region */	if(ivideo->mtrr) {		mtrr_del(ivideo->mtrr, ivideo->video_base, ivideo->video_size);	}#endif	/* Unregister the framebuffer */	if(ivideo->registered) {		unregister_framebuffer(sis_fb_info);#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,3))		framebuffer_release(sis_fb_info);#else		kfree(sis_fb_info);#endif	}	pci_set_drvdata(pdev, NULL);	/* TODO: Restore the initial mode	 * This sounds easy but is as good as impossible	 * on many machines with SiS chip and video bridge	 * since text modes are always set up differently	 * from machine to machine. Depends on the type	 * of integration between chipset and bridge.	 */	if(registered) {	   printk(KERN_INFO "sisfb: Restoring of text mode not supported yet\n");	}};
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/544393fe584d333480659a4bed30f5295355df11/sis_main.c/clean/drivers/video/sis/sis_main.c