Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geliang Tang and committed by
Vinod Koul
812608d1 c5db858b

+1 -6
+1 -6
drivers/dma/mv_xor.c
··· 1630 1630 }, 1631 1631 }; 1632 1632 1633 - 1634 - static int __init mv_xor_init(void) 1635 - { 1636 - return platform_driver_register(&mv_xor_driver); 1637 - } 1638 - device_initcall(mv_xor_init); 1633 + builtin_platform_driver(mv_xor_driver); 1639 1634 1640 1635 /* 1641 1636 MODULE_AUTHOR("Saeed Bishara <saeed@marvell.com>");