clk-rz.c (415d2b3392d7a80903e0f97f051201aa02bf20e9) clk-rz.c (e665f029a283aff4f36f0c5388f7c708be67470e)
1/*
2 * RZ/A1 Core CPG Clocks
3 *
4 * Copyright (C) 2013 Ideas On Board SPRL
5 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 99 unchanged lines hidden (view full) ---

108 for (i = 0; i < num_clks; ++i) {
109 const char *name;
110 struct clk *clk;
111
112 of_property_read_string_index(np, "clock-output-names", i, &name);
113
114 clk = rz_cpg_register_clock(np, cpg, name);
115 if (IS_ERR(clk))
1/*
2 * RZ/A1 Core CPG Clocks
3 *
4 * Copyright (C) 2013 Ideas On Board SPRL
5 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 99 unchanged lines hidden (view full) ---

108 for (i = 0; i < num_clks; ++i) {
109 const char *name;
110 struct clk *clk;
111
112 of_property_read_string_index(np, "clock-output-names", i, &name);
113
114 clk = rz_cpg_register_clock(np, cpg, name);
115 if (IS_ERR(clk))
116 pr_err("%s: failed to register %s %s clock (%ld)\n",
117 __func__, np->name, name, PTR_ERR(clk));
116 pr_err("%s: failed to register %pOFn %s clock (%ld)\n",
117 __func__, np, name, PTR_ERR(clk));
118 else
119 cpg->data.clks[i] = clk;
120 }
121
122 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data);
123
124 cpg_mstp_add_clk_domain(np);
125}
126CLK_OF_DECLARE(rz_cpg_clks, "renesas,rz-cpg-clocks", rz_cpg_clocks_init);
118 else
119 cpg->data.clks[i] = clk;
120 }
121
122 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data);
123
124 cpg_mstp_add_clk_domain(np);
125}
126CLK_OF_DECLARE(rz_cpg_clks, "renesas,rz-cpg-clocks", rz_cpg_clocks_init);