projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1056049
)
drivers/memstick/host/r592.c: convert to module_pci_driver
author
Libo Chen
<clbchenlibo.chen@huawei.com>
Wed, 3 Jul 2013 22:09:14 +0000
(15:09 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:08:06 +0000
(16:08 -0700)
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>
drivers/memstick/host/r592.c
patch
|
blob
|
history
diff --git
a/drivers/memstick/host/r592.c
b/drivers/memstick/host/r592.c
index
9718661
..
1b6e913
100644
(file)
--- a/
drivers/memstick/host/r592.c
+++ b/
drivers/memstick/host/r592.c
@@
-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)");