提交 19bfc772 编写于 作者: J Jingoo Han 提交者: Vinod Koul

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: NJingoo Han <jg1.han@samsung.com>
Signed-off-by: NVinod Koul <vinod.koul@intel.com>
上级 cee42392
...@@ -1346,7 +1346,7 @@ static int sdma_get_firmware(struct sdma_engine *sdma, ...@@ -1346,7 +1346,7 @@ static int sdma_get_firmware(struct sdma_engine *sdma,
return ret; return ret;
} }
static int __init sdma_init(struct sdma_engine *sdma) static int sdma_init(struct sdma_engine *sdma)
{ {
int i, ret; int i, ret;
dma_addr_t ccb_phys; dma_addr_t ccb_phys;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册