Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1525359
| From | Geliang Tang <geliangtang@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] dmaengine: mv_xor: use builtin_platform_driver |
| Date | 2016-11-18 15:20 +0100 |
| Message-ID | <sESbf-8gx-3@gated-at.bofh.it> (permalink) |
| References | <sESbf-8gx-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
---
drivers/dma/mv_xor.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index 23f7528..1865e3f 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -1455,12 +1455,7 @@ static struct platform_driver mv_xor_driver = {
},
};
-
-static int __init mv_xor_init(void)
-{
- return platform_driver_register(&mv_xor_driver);
-}
-device_initcall(mv_xor_init);
+builtin_platform_driver(mv_xor_driver);
/*
MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>");
--
2.9.3
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ACPI / PMIC: AXP288: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
[PATCH] dmaengine: mv_xor: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
Re: [PATCH] dmaengine: mv_xor: use builtin_platform_driver Vinod Koul <vinod.koul@intel.com> - 2016-11-25 07:20 +0100
[PATCH] pinctrl: mediatek: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
Re: [PATCH] pinctrl: mediatek: use builtin_platform_driver Hongzhou Yang <hongzhou.yang@mediatek.com> - 2016-11-19 01:10 +0100
Re: [PATCH] pinctrl: mediatek: use builtin_platform_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-22 10:20 +0100
[PATCH] gpio: mb86s7x: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
Re: [PATCH] gpio: mb86s7x: use builtin_platform_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-22 10:20 +0100
[PATCH] pinctrl: stm32: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
Re: [PATCH] pinctrl: stm32: use builtin_platform_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-22 10:00 +0100
[PATCH] gpio: etraxfs: use builtin_platform_driver Geliang Tang <geliangtang@gmail.com> - 2016-11-18 15:20 +0100
Re: [PATCH] gpio: etraxfs: use builtin_platform_driver Linus Walleij <linus.walleij@linaro.org> - 2016-11-22 10:20 +0100
csiph-web