diff options
author | Devendra Naga <develkernel412222@gmail.com> | 2012-07-29 07:23:30 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 13:09:15 -0400 |
commit | cfeb28525faa855b7f0bd06a330a6961f4c5127e (patch) | |
tree | 0fcea37be9f58e6d94cda6e68acd0fd0dea6f92e /drivers/misc | |
parent | 73ac0e9eafe8d04a3cdb39b7c7c1e3f4154676b5 (diff) |
pch_phub: use module_pci_driver
this driver's pch_phub_pci_init, and pch_phub_pci_exit functions with
the module_init and module_exit calls can be replaced with
module_pci_driver
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/pch_phub.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/pch_phub.c b/drivers/misc/pch_phub.c index e2c066e510f3..c9f20dae1855 100644 --- a/drivers/misc/pch_phub.c +++ b/drivers/misc/pch_phub.c | |||
@@ -893,18 +893,7 @@ static struct pci_driver pch_phub_driver = { | |||
893 | .resume = pch_phub_resume | 893 | .resume = pch_phub_resume |
894 | }; | 894 | }; |
895 | 895 | ||
896 | static int __init pch_phub_pci_init(void) | 896 | module_pci_driver(pch_phub_driver); |
897 | { | ||
898 | return pci_register_driver(&pch_phub_driver); | ||
899 | } | ||
900 | |||
901 | static void __exit pch_phub_pci_exit(void) | ||
902 | { | ||
903 | pci_unregister_driver(&pch_phub_driver); | ||
904 | } | ||
905 | |||
906 | module_init(pch_phub_pci_init); | ||
907 | module_exit(pch_phub_pci_exit); | ||
908 | 897 | ||
909 | MODULE_DESCRIPTION("Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB"); | 898 | MODULE_DESCRIPTION("Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB"); |
910 | MODULE_LICENSE("GPL"); | 899 | MODULE_LICENSE("GPL"); |