OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b45341
)
USB: bcma: use module_bcma_driver to simplify the code
author
Liu Shixin
<liushixin2@huawei.com>
Fri, 18 Sep 2020 03:08:30 +0000
(11:08 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 22 Sep 2020 08:37:13 +0000
(10:37 +0200)
module_bcma_driver() makes the code simpler by eliminating
boilerplate code.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Link:
https://lore.kernel.org/r/20200918030830.3946254-1-liushixin2@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/bcma-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/bcma-hcd.c
b/drivers/usb/host/bcma-hcd.c
index
b1b777f
..
337b425
100644
(file)
--- a/
drivers/usb/host/bcma-hcd.c
+++ b/
drivers/usb/host/bcma-hcd.c
@@
-498,15
+498,4
@@
static struct bcma_driver bcma_hcd_driver = {
.suspend = bcma_hcd_suspend,
.resume = bcma_hcd_resume,
};
-
-static int __init bcma_hcd_init(void)
-{
- return bcma_driver_register(&bcma_hcd_driver);
-}
-module_init(bcma_hcd_init);
-
-static void __exit bcma_hcd_exit(void)
-{
- bcma_driver_unregister(&bcma_hcd_driver);
-}
-module_exit(bcma_hcd_exit);
+module_bcma_driver(bcma_hcd_driver);