aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-11-05 20:10:09 -0500
committerVinod Koul <vinod.koul@intel.com>2014-11-17 03:20:35 -0500
commit19bfc7726506b48620106b0bb4d32eb37cbcb355 (patch)
tree52ef2818e49b852bf482dce765719b729aa9fe9b
parentcee42392f5f0482d5cc71635a9c57b4ccdadb886 (diff)
dma: imx-sdma: remove incorrect __init annotation from sdma_init()
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>
-rw-r--r--drivers/dma/imx-sdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index 88afc48c2ca7..99d8833edbd6 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1346,7 +1346,7 @@ static int sdma_get_firmware(struct sdma_engine *sdma,
1346 return ret; 1346 return ret;
1347} 1347}
1348 1348
1349static int __init sdma_init(struct sdma_engine *sdma) 1349static int sdma_init(struct sdma_engine *sdma)
1350{ 1350{
1351 int i, ret; 1351 int i, ret;
1352 dma_addr_t ccb_phys; 1352 dma_addr_t ccb_phys;