ChangeSet 1.2293, 2005/03/31 08:46:17-08:00, [EMAIL PROTECTED]

        [PATCH] 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]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 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-31 10:26:01 -08:00
+++ b/drivers/video/sis/sis_main.c      2005-03-31 10:26: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)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to