defect: fix section mismatch warning
authorjiamin ma <jiamin.ma@amlogic.com>
Wed, 18 Apr 2018 00:37:52 +0000 (08:37 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 18 Apr 2018 05:42:06 +0000 (21:42 -0800)
commit23fdd53d97ff491d2dc17fda78fb22cd6825623d
treea5e799c919269220b862914e3dd341ef28a4a6a1
parentbcfcd94eb192c3509128a48831c9e00eb306c961
defect: fix section mismatch warning

PD#164617: section mismatch warning

When a variable or function with __initxxx anotation refers a
variable or function without it, there will be a section mismatch
warning.
In such case, memory belong to the latter will be released after
kernel booting up, if the former still refers the latter, strange
things happens
So we have to use __initxxx anotations correctly or add __refxxx
anotations to teach modpost that it is okay and save to use __init
anotations in this way.

Change-Id: Ic97dac8998b2a01c82dd7a3bae12fa9c7a113bc4
Signed-off-by: jiamin ma <jiamin.ma@amlogic.com>
drivers/amlogic/clk/clkc.h
drivers/amlogic/ddr_tool/ddr_bandwidth.c