[PATCH 3/5] sisfb: Trivial cleanups
DORMANTno replies
From: Antonino A. Daplas <hidden>
Date: 2005-03-14 23:08:06
sis_main.c vfree() checking cleanups. convert from pci_module_init to pci_register_driver (from:http://kerneljanitors.org/TODO). Signed-off by: James Lamanna [off-list ref] Signed-off-by: Domen Puncer <redacted> Signed-off-by: Antonino Daplas <redacted> --- sis_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c
--- a/drivers/video/sis/sis_main.c 2005-03-12 23:25:37 +08:00
+++ b/drivers/video/sis/sis_main.c 2005-03-05 23:13:01 +08:00@@ -5640,7 +5640,7 @@ /* Unmap */ iounmap(ivideo->video_vbase); iounmap(ivideo->mmio_vbase); - if(ivideo->bios_abase) vfree(ivideo->bios_abase); + vfree(ivideo->bios_abase); /* Release mem regions */ release_mem_region(ivideo->video_base, ivideo->video_size);
@@ -5695,7 +5695,7 @@ sisfb_setup(options); #endif #endif - return(pci_module_init(&sisfb_driver)); + return(pci_register_driver(&sisfb_driver)); } #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,8) -------------------------------------------------------
SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click