Browse Source

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>
Geliang Tang 8 years ago
parent
commit
812608d196
1 changed files with 1 additions and 6 deletions
  1. 1 6
      drivers/dma/mv_xor.c

+ 1 - 6
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>");