clk: core: add __init decoration for CLK_OF_DECLARE_DRIVER function
The new introduced macro CLK_OF_DECLARE_DRIVER is usually used to
declare clock driver init functions, which are mostly decorated with
__init. Add __init decoration for CLK_OF_DECLARE_DRIVER function to
avoid causing section mismatch warnings on client clock drivers.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Fixes: c7296c51ce
("clk: core: New macro CLK_OF_DECLARE_DRIVER")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
Родитель
234d511d8c
Коммит
339e1e5489
|
@ -785,7 +785,7 @@ extern struct of_device_id __clk_of_table;
|
||||||
* routines, one at of_clk_init(), and one at platform device probe
|
* routines, one at of_clk_init(), and one at platform device probe
|
||||||
*/
|
*/
|
||||||
#define CLK_OF_DECLARE_DRIVER(name, compat, fn) \
|
#define CLK_OF_DECLARE_DRIVER(name, compat, fn) \
|
||||||
static void name##_of_clk_init_driver(struct device_node *np) \
|
static void __init name##_of_clk_init_driver(struct device_node *np) \
|
||||||
{ \
|
{ \
|
||||||
of_node_clear_flag(np, OF_POPULATED); \
|
of_node_clear_flag(np, OF_POPULATED); \
|
||||||
fn(np); \
|
fn(np); \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче