diff options
author | Geliang Tang <geliangtang@gmail.com> | 2016-11-18 22:12:26 +0800 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-11-25 11:47:39 +0530 |
commit | 812608d1961c48916c758df60eef7abd8ff8b59e (patch) | |
tree | ae1e4a88118c967aca61a03590c1bf876c7ba471 /drivers/dma/mv_xor.c | |
parent | c5db858bdfeff00c219c64a95338c1eb5460555c (diff) |
dmaengine: mv_xor: use builtin_platform_driver
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>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r-- | drivers/dma/mv_xor.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index b0d09d97535f..0cb951b743a6 100644 --- 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>"); |