Commit e715eb2e authored by Catalin Marinas's avatar Catalin Marinas

vexpress: Initialise the sysregs before setting up the clocks

Following arm64 commit bc3ee18a (arm64: init: Move of_clk_init to
time_init()), vexpress_osc_of_setup() is called via of_clk_init() long
before initcalls are issued. Initialising the vexpress oscillators
requires the vespress sysregs to be already initialised, so this patch
adds an explicit call to vexpress_sysreg_of_early_init() in vexpress
oscillator setup function.
Signed-off-by: default avatarCatalin Marinas <>
Tested-by: default avatarWill Deacon <>
Acked-by: default avatarWill Deacon <>
Tested-by: default avatarPawel Moll <>
Acked-by: default avatarPawel Moll <>
Cc: Mike Turquette <>
parent 7a8d1ec1
......@@ -100,6 +100,8 @@ void __init vexpress_osc_of_setup(struct device_node *node)
struct clk *clk;
u32 range[2];
osc = kzalloc(sizeof(*osc), GFP_KERNEL);
if (!osc)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment