]>
Commit | Line | Data |
---|---|---|
38edc49d SLM |
1 | From 040264a1cf23b6dadf1fea055a2785fe6b3dba71 Mon Sep 17 00:00:00 2001 |
2 | From: Arnd Bergmann <arnd@arndb.de> | |
3 | Date: Thu, 7 Mar 2019 11:10:11 +0100 | |
4 | Subject: mmc: davinci: remove extraneous __init annotation | |
5 | ||
6 | [ Upstream commit 9ce58dd7d9da3ca0d7cb8c9568f1c6f4746da65a ] | |
7 | ||
8 | Building with clang finds a mistaken __init tag: | |
9 | ||
10 | WARNING: vmlinux.o(.text+0x5e4250): Section mismatch in reference from the function davinci_mmcsd_probe() to the function .init.text:init_mmcsd_host() | |
11 | The function davinci_mmcsd_probe() references | |
12 | the function __init init_mmcsd_host(). | |
13 | This is often because davinci_mmcsd_probe lacks a __init | |
14 | annotation or the annotation of init_mmcsd_host is wrong. | |
15 | ||
16 | Signed-off-by: Arnd Bergmann <arnd@arndb.de> | |
17 | Acked-by: Wolfram Sang <wsa@the-dreams.de> | |
18 | Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> | |
19 | Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> | |
20 | Signed-off-by: Sasha Levin <sashal@kernel.org> | |
21 | --- | |
22 | drivers/mmc/host/davinci_mmc.c | 2 +- | |
23 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
24 | ||
25 | diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c | |
26 | index ea2a2ebc6b91..dba7565571a5 100644 | |
27 | --- a/drivers/mmc/host/davinci_mmc.c | |
28 | +++ b/drivers/mmc/host/davinci_mmc.c | |
29 | @@ -1147,7 +1147,7 @@ static inline void mmc_davinci_cpufreq_deregister(struct mmc_davinci_host *host) | |
30 | { | |
31 | } | |
32 | #endif | |
33 | -static void __init init_mmcsd_host(struct mmc_davinci_host *host) | |
34 | +static void init_mmcsd_host(struct mmc_davinci_host *host) | |
35 | { | |
36 | ||
37 | mmc_davinci_reset_ctrl(host, 1); | |
38 | -- | |
39 | 2.19.1 | |
40 |