[ARM] 4566/1: s3c24xx: fix dma functions section mismatch
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-s3c2443 / dma.c
index fc3ede82af8f77360fef59d0a1e3200d3c60bd5c..f6c006d4297b4cee7999c55a3ca08b1779ed102e 100644 (file)
@@ -162,7 +162,7 @@ static struct s3c24xx_dma_selection __initdata s3c2443_dma_sel = {
        .map_size       = ARRAY_SIZE(s3c2443_dma_mappings),
 };
 
-static int s3c2443_dma_add(struct sys_device *sysdev)
+static int __init s3c2443_dma_add(struct sys_device *sysdev)
 {
        s3c24xx_dma_init(6, IRQ_S3C2443_DMA0, 0x100);
        return s3c24xx_dma_init_map(&s3c2443_dma_sel);