Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 14b5a4bf authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Maxime Ripard
Browse files

clk: sunxi: don't mark sun6i_ar100_data __initconst



The clk-sun6i-ar100 clk driver is a platform driver that may use
deferred probing, so its probe function must not access
__init symbols. Kbuild warns about this:

WARNING: drivers/clk/sunxi/built-in.o(.text+0x15f0): Section mismatch in reference from the function sun6i_a31_ar100_clk_probe() to the (unknown reference) .init.rodata:(unknown)
The function sun6i_a31_ar100_clk_probe() references
the (unknown reference) __initconst (unknown).
This is often because sun6i_a31_ar100_clk_probe lacks a __initconst
annotation or the annotation of (unknown) is wrong.

Removing the __initconst annotation avoids the warning and makes
deferred probing work.

Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Fixes: 3ca2377b ("clk: sunxi: rewrite sun6i-ar100 using factors clk")
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent be338e4c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment