Skip to content

Commit

Permalink
drivers/memstick/host/r592.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: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Libo Chen authored and Linus Torvalds committed Jul 3, 2013
1 parent 1056049 commit 5af1a9c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions drivers/memstick/host/r592.c
Original file line number Diff line number Diff line change
Expand Up @@ -884,18 +884,7 @@ static struct pci_driver r852_pci_driver = {
.driver.pm = &r592_pm_ops,
};

static __init int r592_module_init(void)
{
return pci_register_driver(&r852_pci_driver);
}

static void __exit r592_module_exit(void)
{
pci_unregister_driver(&r852_pci_driver);
}

module_init(r592_module_init);
module_exit(r592_module_exit);
module_pci_driver(r852_pci_driver);

module_param_named(enable_dma, r592_enable_dma, bool, S_IRUGO);
MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)");
Expand Down

0 comments on commit 5af1a9c

Please sign in to comment.