projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c05ce69
)
dmaengine: lgm: Use builtin_platform_driver macro to simplify the code
author
Li Zetao
<lizetao1@huawei.com>
Tue, 15 Aug 2023 08:02:50 +0000
(16:02 +0800)
committer
Vinod Koul
<vkoul@kernel.org>
Mon, 21 Aug 2023 05:43:09 +0000
(11:13 +0530)
Use the builtin_platform_driver macro to simplify the code, which is the
same as declaring with device_initcall().
Signed-off-by: Li Zetao <lizetao1@huawei.com>
Acked-by: Peter Harliman Liem <pliem@maxlinear.com>
Link:
https://lore.kernel.org/r/20230815080250.1089589-1-lizetao1@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/lgm/lgm-dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/lgm/lgm-dma.c
b/drivers/dma/lgm/lgm-dma.c
index 1709d159af7e019e04fe015fa38690c55ef71fe4..4117c7b67e9c2ebc20b1ee37a1ae868dce0d0b9f 100644
(file)
--- a/
drivers/dma/lgm/lgm-dma.c
+++ b/
drivers/dma/lgm/lgm-dma.c
@@
-1732,9
+1732,4
@@
static struct platform_driver intel_ldma_driver = {
* registered DMA channels and DMA capabilities to clients before their
* initialization.
*/
-static int __init intel_ldma_init(void)
-{
- return platform_driver_register(&intel_ldma_driver);
-}
-
-device_initcall(intel_ldma_init);
+builtin_platform_driver(intel_ldma_driver);