clk: ux500: clk-sysctrl: handle clocks with no parents
authorFabio Baltieri <fabio.baltieri@linaro.org>
Tue, 30 Apr 2013 12:45:06 +0000 (14:45 +0200)
committerMike Turquette <mturquette@linaro.org>
Wed, 29 May 2013 18:52:18 +0000 (11:52 -0700)
commitf586938ba2cf83ed4cbebe96436220d182a7808e
tree1ad0d4f8f49a2e522b67368715bdf05386197c7a
parentdd4704480372fdbf3e8f7826274a883c4c7c335a
clk: ux500: clk-sysctrl: handle clocks with no parents

Fix clk_reg_sysctrl() to set main clock registers of new struct
clk_sysctrl even if the registered clock has no parents.

This fixes an issue where "ulpclk" was registered with all clk->reg_*
fields uninitialized, causing a -EINVAL error from clk_prepare().

Signed-off-by: Fabio Baltieri <fabio.baltieri@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/ux500/clk-sysctrl.c