[PATCH] dmaengine: mv_xor: use builtin_platform_driver

From: Geliang Tang
Date: Fri Nov 18 2016 - 09:15:22 EST


Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@xxxxxxxxx>
---
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@xxxxxxxxxxx>");
--
2.9.3