Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

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>

authored by

Libo Chen and committed by
Linus Torvalds
5af1a9ce 10560490

+1 -12
+1 -12
drivers/memstick/host/r592.c
··· 884 884 .driver.pm = &r592_pm_ops, 885 885 }; 886 886 887 - static __init int r592_module_init(void) 888 - { 889 - return pci_register_driver(&r852_pci_driver); 890 - } 891 - 892 - static void __exit r592_module_exit(void) 893 - { 894 - pci_unregister_driver(&r852_pci_driver); 895 - } 896 - 897 - module_init(r592_module_init); 898 - module_exit(r592_module_exit); 887 + module_pci_driver(r852_pci_driver); 899 888 900 889 module_param_named(enable_dma, r592_enable_dma, bool, S_IRUGO); 901 890 MODULE_PARM_DESC(enable_dma, "Enable usage of the DMA (default)");