dma: imx-sdma: remove incorrect __init annotation from sdma_init()
authorJingoo Han <jg1.han@samsung.com>
Thu, 6 Nov 2014 01:10:09 +0000 (10:10 +0900)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 08:20:35 +0000 (13:50 +0530)
When platform_driver_probe() is not used, sdma_probe() can be called
by bind/unbind via sysfs. In addition, sdma_init() can be called by
sdma_probe(). Thus, __init annotation should be removed from sdma_init(),
Also, this patch fixes section mismatch warning.

WARNING: drivers/dma/built-in.o(.text+0xd6e4): Section mismatch in reference from the function sdma_probe() to the function
.init.text:sdma_init()
The function sdma_probe() references
the function __init sdma_init().
This is often because sdma_probe lacks a __init
annotation or the annotation of sdma_init is wrong.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/imx-sdma.c

index 88afc48c2ca718e62b567f7d48ac8fe27fae7c58..99d8833edbd63872fea5d37868dc0242f914e76d 100644 (file)
@@ -1346,7 +1346,7 @@ static int sdma_get_firmware(struct sdma_engine *sdma,
        return ret;
 }
 
-static int __init sdma_init(struct sdma_engine *sdma)
+static int sdma_init(struct sdma_engine *sdma)
 {
        int i, ret;
        dma_addr_t ccb_phys;
This page took 0.025548 seconds and 5 git commands to generate.