clk-mtk.c (9095bf25ea08135a5b74875dd0e3eeaddc4218a0) clk-mtk.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec)
1/*
2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: James Liao <jamesjj.liao@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

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

109 struct clk *clk;
110 struct regmap *regmap;
111
112 if (!clk_data)
113 return -ENOMEM;
114
115 regmap = syscon_node_to_regmap(node);
116 if (IS_ERR(regmap)) {
1/*
2 * Copyright (c) 2014 MediaTek Inc.
3 * Author: James Liao <jamesjj.liao@mediatek.com>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *

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

109 struct clk *clk;
110 struct regmap *regmap;
111
112 if (!clk_data)
113 return -ENOMEM;
114
115 regmap = syscon_node_to_regmap(node);
116 if (IS_ERR(regmap)) {
117 pr_err("Cannot find regmap for %s: %ld\n", node->full_name,
117 pr_err("Cannot find regmap for %pOF: %ld\n", node,
118 PTR_ERR(regmap));
119 return PTR_ERR(regmap);
120 }
121
122 for (i = 0; i < num; i++) {
123 const struct mtk_gate *gate = &clks[i];
124
125 if (!IS_ERR_OR_NULL(clk_data->clks[gate->id]))

--- 161 unchanged lines hidden ---
118 PTR_ERR(regmap));
119 return PTR_ERR(regmap);
120 }
121
122 for (i = 0; i < num; i++) {
123 const struct mtk_gate *gate = &clks[i];
124
125 if (!IS_ERR_OR_NULL(clk_data->clks[gate->id]))

--- 161 unchanged lines hidden ---