Skip to content

Commit

Permalink
drivers/net/irda/donauboe.c: convert to module_pci_driver
Browse files Browse the repository at this point in the history
Signed-off-by: Libo Chen <libo.chen@huawei.com>
Cc: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Libo Chen authored and David S. Miller committed Aug 14, 2014
1 parent efd5029 commit cd09492
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions drivers/net/irda/donauboe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1755,17 +1755,4 @@ static struct pci_driver donauboe_pci_driver = {
.resume = toshoboe_wakeup
};

static int __init
donauboe_init (void)
{
return pci_register_driver(&donauboe_pci_driver);
}

static void __exit
donauboe_cleanup (void)
{
pci_unregister_driver(&donauboe_pci_driver);
}

module_init(donauboe_init);
module_exit(donauboe_cleanup);
module_pci_driver(donauboe_pci_driver);

0 comments on commit cd09492

Please sign in to comment.