]> git.karo-electronics.de Git - linux-beck.git/commitdiff
dma: imx-sdma: fix another incorrect __init annotation
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Sep 2014 21:24:00 +0000 (23:24 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sun, 28 Sep 2014 16:00:05 +0000 (21:30 +0530)
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>
drivers/dma/imx-sdma.c

index 52ce1d21154c970c8e52613e8fb89753aeefb083..88afc48c2ca718e62b567f7d48ac8fe27fae7c58 100644 (file)
@@ -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;