projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c5db858
)
dmaengine: mv_xor: use builtin_platform_driver
author
Geliang Tang
<geliangtang@gmail.com>
Fri, 18 Nov 2016 14:12:26 +0000
(22:12 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Fri, 25 Nov 2016 06:17:39 +0000
(11:47 +0530)
Use builtin_platform_driver() helper to simplify the code.
Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mv_xor.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/mv_xor.c
b/drivers/dma/mv_xor.c
index b0d09d97535fcaa368b623772c1543b6461da910..0cb951b743a6037cd6e4d0af05b1c63295e90dcd 100644
(file)
--- a/
drivers/dma/mv_xor.c
+++ b/
drivers/dma/mv_xor.c
@@
-1630,12
+1630,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>");