clk-r8a73a4.c (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) | clk-r8a73a4.c (e665f029a283aff4f36f0c5388f7c708be67470e) |
---|---|
1/* 2 * r8a73a4 Core CPG Clocks 3 * 4 * Copyright (C) 2014 Ulrich Hecht 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2 of the License. --- 214 unchanged lines hidden (view full) --- 223 const char *name; 224 struct clk *clk; 225 226 of_property_read_string_index(np, "clock-output-names", i, 227 &name); 228 229 clk = r8a73a4_cpg_register_clock(np, cpg, name); 230 if (IS_ERR(clk)) | 1/* 2 * r8a73a4 Core CPG Clocks 3 * 4 * Copyright (C) 2014 Ulrich Hecht 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; version 2 of the License. --- 214 unchanged lines hidden (view full) --- 223 const char *name; 224 struct clk *clk; 225 226 of_property_read_string_index(np, "clock-output-names", i, 227 &name); 228 229 clk = r8a73a4_cpg_register_clock(np, cpg, name); 230 if (IS_ERR(clk)) |
231 pr_err("%s: failed to register %s %s clock (%ld)\n", 232 __func__, np->name, name, PTR_ERR(clk)); | 231 pr_err("%s: failed to register %pOFn %s clock (%ld)\n", 232 __func__, np, name, PTR_ERR(clk)); |
233 else 234 cpg->data.clks[i] = clk; 235 } 236 237 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); 238} 239CLK_OF_DECLARE(r8a73a4_cpg_clks, "renesas,r8a73a4-cpg-clocks", 240 r8a73a4_cpg_clocks_init); | 233 else 234 cpg->data.clks[i] = clk; 235 } 236 237 of_clk_add_provider(np, of_clk_src_onecell_get, &cpg->data); 238} 239CLK_OF_DECLARE(r8a73a4_cpg_clks, "renesas,r8a73a4-cpg-clocks", 240 r8a73a4_cpg_clocks_init); |