clk-prcc.c (c25141062a82ae8bddced1b3ce2b57a1c0efabe0) clk-prcc.c (7a294dc6c85d6cea181055c5412bb44a499e3816)
1/*
2 * PRCC clock implementation for ux500 platform.
3 *
4 * Copyright (C) 2012 ST-Ericsson SA
5 * Author: Ulf Hansson <ulf.hansson@linaro.org>
6 *
7 * License terms: GNU General Public License (GPL) version 2
8 */

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

103 struct clk *clk_reg;
104
105 if (!name) {
106 pr_err("clk_prcc: %s invalid arguments passed\n", __func__);
107 return ERR_PTR(-EINVAL);
108 }
109
110 clk = kzalloc(sizeof(struct clk_prcc), GFP_KERNEL);
1/*
2 * PRCC clock implementation for ux500 platform.
3 *
4 * Copyright (C) 2012 ST-Ericsson SA
5 * Author: Ulf Hansson <ulf.hansson@linaro.org>
6 *
7 * License terms: GNU General Public License (GPL) version 2
8 */

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

103 struct clk *clk_reg;
104
105 if (!name) {
106 pr_err("clk_prcc: %s invalid arguments passed\n", __func__);
107 return ERR_PTR(-EINVAL);
108 }
109
110 clk = kzalloc(sizeof(struct clk_prcc), GFP_KERNEL);
111 if (!clk) {
112 pr_err("clk_prcc: %s could not allocate clk\n", __func__);
111 if (!clk)
113 return ERR_PTR(-ENOMEM);
112 return ERR_PTR(-ENOMEM);
114 }
115
116 clk->base = ioremap(phy_base, SZ_4K);
117 if (!clk->base)
118 goto free_clk;
119
120 clk->cg_sel = cg_sel;
121 clk->is_enabled = 1;
122

--- 40 unchanged lines hidden ---
113
114 clk->base = ioremap(phy_base, SZ_4K);
115 if (!clk->base)
116 goto free_clk;
117
118 clk->cg_sel = cg_sel;
119 clk->is_enabled = 1;
120

--- 40 unchanged lines hidden ---