Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5af1a9ce authored by Libo Chen's avatar Libo Chen Committed by Linus Torvalds
Browse files

drivers/memstick/host/r592.c: convert to module_pci_driver



Signed-off-by: default avatarLibo Chen <libo.chen@huawei.com>
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 10560490
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -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)");