Hello. On 5/9/2016 10:13 AM, Dirk Behme wrote:
From: Simon Horman <horms+renesas@xxxxxxxxxxxx> Use new boot mode reg infrastructure to obtain the mode pin value for initialising clocks for for R-Car Gen2 SoCs.
My spell-checker trips over "initialising". Perhaps initializing?
Signed-off-by: Simon Horman <horms+renesas@xxxxxxxxxxxx>
[...]
@@ -421,9 +423,15 @@ static void __init rcar_gen2_cpg_clocks_init(struct device_node *np) CLK_OF_DECLARE(rcar_gen2_cpg_clks, "renesas,rcar-gen2-cpg-clocks", rcar_gen2_cpg_clocks_init); -void __init rcar_gen2_clocks_init(u32 mode) +void __init rcar_gen2_clocks_init(void) { - cpg_mode = mode; + int err; + + err = boot_mode_reg_get(&cpg_mode); + if (err) { + pr_err("%s: failed obtain boot mode\n", __func__);
Failed to obtain? [...] MBR, Sergei