summaryrefslogtreecommitdiff
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2016-11-18 17:12:26 +0300
committerVinod Koul <vinod.koul@intel.com>2016-11-25 09:17:39 +0300
commit812608d1961c48916c758df60eef7abd8ff8b59e (patch)
treeae1e4a88118c967aca61a03590c1bf876c7ba471 /drivers/dma/mv_xor.c
parentc5db858bdfeff00c219c64a95338c1eb5460555c (diff)
downloadlinux-812608d1961c48916c758df60eef7abd8ff8b59e.tar.xz
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.c7
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>");