staging/sm7xxfb: use module_pci_driver macro
[firefly-linux-kernel-4.4.55.git] / drivers / staging / sm7xxfb / sm7xxfb.c
index e3511ecd0980c4540a820e61cba0735da3868711..0c0b6035cb04957a95071aaa4ed8369c9a869ccc 100644 (file)
@@ -1058,18 +1058,7 @@ static struct pci_driver smtcfb_driver = {
        .driver.pm  = SM7XX_PM_OPS,
 };
 
-static int __init smtcfb_init(void)
-{
-       return pci_register_driver(&smtcfb_driver);
-}
-
-static void __exit smtcfb_exit(void)
-{
-       pci_unregister_driver(&smtcfb_driver);
-}
-
-module_init(smtcfb_init);
-module_exit(smtcfb_exit);
+module_pci_driver(smtcfb_driver);
 
 MODULE_AUTHOR("Siliconmotion ");
 MODULE_DESCRIPTION("Framebuffer driver for SMI Graphic Cards");