summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2019-03-07 11:10:11 +0100
committerUlf Hansson <ulf.hansson@linaro.org>2019-03-18 11:02:30 +0100
commit9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a (patch)
tree80ef57444cddbd1827ec5ac611671428be5ce067 /drivers/mmc
parente60a582bcde01158a64ff948fb799f21f5d31a11 (diff)
downloadlinux-stable-9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a.tar.gz
linux-stable-9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a.tar.bz2
linux-stable-9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a.zip
mmc: davinci: remove extraneous __init annotation
Building with clang finds a mistaken __init tag: WARNING: vmlinux.o(.text+0x5e4250): Section mismatch in reference from the function davinci_mmcsd_probe() to the function .init.text:init_mmcsd_host() The function davinci_mmcsd_probe() references the function __init init_mmcsd_host(). This is often because davinci_mmcsd_probe lacks a __init annotation or the annotation of init_mmcsd_host is wrong. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Wolfram Sang <wsa@the-dreams.de> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/davinci_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c
index 49e0daf2ef5e..f37003df1e01 100644
--- a/drivers/mmc/host/davinci_mmc.c
+++ b/drivers/mmc/host/davinci_mmc.c
@@ -1117,7 +1117,7 @@ static inline void mmc_davinci_cpufreq_deregister(struct mmc_davinci_host *host)
{
}
#endif
-static void __init init_mmcsd_host(struct mmc_davinci_host *host)
+static void init_mmcsd_host(struct mmc_davinci_host *host)
{
mmc_davinci_reset_ctrl(host, 1);