summaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2014-09-26 23:24:00 +0200
committerVinod Koul <vinod.koul@intel.com>2014-09-28 21:30:05 +0530
commitfe6cf28936cc948cd1045568975c5b0d196e76d4 (patch)
tree524d44d35a0d8fe5eefd2b789f6bfe7aac51f129 /drivers/dma
parent14e0e2833d44f61cb8168d04e979a2bfbc0f4bfb (diff)
downloadlinux-fe6cf28936cc948cd1045568975c5b0d196e76d4.tar.gz
linux-fe6cf28936cc948cd1045568975c5b0d196e76d4.tar.bz2
linux-fe6cf28936cc948cd1045568975c5b0d196e76d4.zip
dma: imx-sdma: fix another incorrect __init annotation
In e34b731faa7d1 ("dma: imx-sdma: Remove spurious __init annotation on sdma_probe()"), Mark found an extraneous __init label and fixed it. However, he missed another one, because now we get this other warning: WARNING: drivers/dma/imx-sdma.o(.text+0x3bb4): Section mismatch in reference from the function sdma_probe() to the function .init.text:sdma_get_firmware() The function sdma_probe() references the function __init sdma_get_firmware(). Same reasoning as the last time, the function may get called at runtime, so it can't be __init. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-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 52ce1d21154c..88afc48c2ca7 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1334,7 +1334,7 @@ err_firmware:
release_firmware(fw);
}
-static int __init sdma_get_firmware(struct sdma_engine *sdma,
+static int sdma_get_firmware(struct sdma_engine *sdma,
const char *fw_name)
{
int ret;