mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
clk: rockchip: clk-ddr: fix section mismatch problem
In rockchip_clk_register_ddrclk,
ifdef CONFIG_ARM
if (!psci_smp_available())
return NULL;
endif
Add "__init" for rockchip_clk_register_ddrclk() to match with
psci_smp_available().
Change-Id: Ib6849e359921c3a937bf8dc4f6547aed353f1071
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -306,12 +306,13 @@ static const struct clk_ops rockchip_ddrclk_sip_ops_v2 = {
|
||||
.get_parent = rockchip_ddrclk_get_parent,
|
||||
};
|
||||
|
||||
struct clk *rockchip_clk_register_ddrclk(const char *name, int flags,
|
||||
const char *const *parent_names,
|
||||
u8 num_parents, int mux_offset,
|
||||
int mux_shift, int mux_width,
|
||||
int div_shift, int div_width,
|
||||
int ddr_flag, void __iomem *reg_base)
|
||||
struct clk * __init
|
||||
rockchip_clk_register_ddrclk(const char *name, int flags,
|
||||
const char *const *parent_names,
|
||||
u8 num_parents, int mux_offset,
|
||||
int mux_shift, int mux_width,
|
||||
int div_shift, int div_width,
|
||||
int ddr_flag, void __iomem *reg_base)
|
||||
{
|
||||
struct rockchip_ddrclk *ddrclk;
|
||||
struct clk_init_data init;
|
||||
|
||||
Reference in New Issue
Block a user