sisfb: Trivial cleanups
PATCH 3/5 sisfb: Trivial cleanups
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 <[email protected]>
Signed-off-by Domen Puncer <[email protected]>
Signed-off-by Antonino Daplas <[email protected]>
---
sis_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/video/sis/sis_main.c +2 -2
@@ -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