Skip to content

Commit cfeb285

Browse files
Devendra Nagagregkh
authored andcommitted
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>
1 parent 73ac0e9 commit cfeb285

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

drivers/misc/pch_phub.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -893,18 +893,7 @@ static struct pci_driver pch_phub_driver = {
893893
.resume = pch_phub_resume
894894
};
895895

896-
static int __init pch_phub_pci_init(void)
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);
896+
module_pci_driver(pch_phub_driver);
908897

909898
MODULE_DESCRIPTION("Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB");
910899
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)