]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/platform/x86/intel_ips.c: convert to module_pci_driver
authorLibo Chen <clbchenlibo.chen@huawei.com>
Thu, 27 Jun 2013 23:50:48 +0000 (09:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:08 +0000 (16:37 +1000)
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Matthew Garrett <matthew.garrett@nebula.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/platform/x86/intel_ips.c

index 5051aa970e0af3144c294516a92282ead76bb06b..18dcb58ba9656187b57f6006a052f62570582f8f 100644 (file)
@@ -1731,18 +1731,7 @@ static struct pci_driver ips_pci_driver = {
        .shutdown = ips_shutdown,
 };
 
-static int __init ips_init(void)
-{
-       return pci_register_driver(&ips_pci_driver);
-}
-module_init(ips_init);
-
-static void ips_exit(void)
-{
-       pci_unregister_driver(&ips_pci_driver);
-       return;
-}
-module_exit(ips_exit);
+module_pci_driver(ips_pci_driver);
 
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Jesse Barnes <jbarnes@virtuousgeek.org>");