Skip to content

Commit 9bb0b8e

Browse files
arndbgregkh
authored andcommitted
mmc: davinci: remove extraneous __init annotation
[ Upstream commit 9ce58dd ] 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 <[email protected]> Acked-by: Wolfram Sang <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]> Signed-off-by: Ulf Hansson <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent b33c007 commit 9bb0b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/davinci_mmc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,7 +1147,7 @@ static inline void mmc_davinci_cpufreq_deregister(struct mmc_davinci_host *host)
11471147
{
11481148
}
11491149
#endif
1150-
static void __init init_mmcsd_host(struct mmc_davinci_host *host)
1150+
static void init_mmcsd_host(struct mmc_davinci_host *host)
11511151
{
11521152

11531153
mmc_davinci_reset_ctrl(host, 1);

0 commit comments

Comments
 (0)