]> 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>
Wed, 19 Jun 2013 00:05:21 +0000 (10:05 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:12:38 +0000 (17:12 +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>");