diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2013-11-22 14:30:05 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-01-04 01:27:38 +0400 |
commit | ae6e694ef566ed69a2537c80771a9031ec627494 (patch) | |
tree | 86fefdf50b9966e14eec25f6de162935195b0635 /drivers/clk/versatile/clk-realview.c | |
parent | 8f6344faafb455e7481d87490d372c8337a0e32b (diff) | |
download | linux-ae6e694ef566ed69a2537c80771a9031ec627494.tar.xz |
clk: versatile: pass a name to ICST clock provider
When we have more than one of these clocks in a system (such as
on the IM-PD1) we need a mechanism to pass a name for the clock.
Refactor to add this as an argument.
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/clk/versatile/clk-realview.c')
-rw-r--r-- | drivers/clk/versatile/clk-realview.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/clk/versatile/clk-realview.c b/drivers/clk/versatile/clk-realview.c index cda07e70a408..747e7b31117c 100644 --- a/drivers/clk/versatile/clk-realview.c +++ b/drivers/clk/versatile/clk-realview.c @@ -84,9 +84,11 @@ void __init realview_clk_init(void __iomem *sysbase, bool is_pb1176) /* ICST VCO clock */ if (is_pb1176) - clk = icst_clk_register(NULL, &realview_osc0_desc, sysbase); + clk = icst_clk_register(NULL, &realview_osc0_desc, + "osc0", sysbase); else - clk = icst_clk_register(NULL, &realview_osc4_desc, sysbase); + clk = icst_clk_register(NULL, &realview_osc4_desc, + "osc4", sysbase); clk_register_clkdev(clk, NULL, "dev:clcd"); clk_register_clkdev(clk, NULL, "issp:clcd"); |