Skip to content

Commit

Permalink
pch_phub: use module_pci_driver
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Aug 16, 2012
1 parent 73ac0e9 commit cfeb285
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/misc/pch_phub.c
Original file line number Diff line number Diff line change
Expand Up @@ -893,18 +893,7 @@ static struct pci_driver pch_phub_driver = {
.resume = pch_phub_resume
};

static int __init pch_phub_pci_init(void)
{
return pci_register_driver(&pch_phub_driver);
}

static void __exit pch_phub_pci_exit(void)
{
pci_unregister_driver(&pch_phub_driver);
}

module_init(pch_phub_pci_init);
module_exit(pch_phub_pci_exit);
module_pci_driver(pch_phub_driver);

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

0 comments on commit cfeb285

Please sign in to comment.