reset.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) reset.c (1667393126d7c51fad8b3cb9d3798e8e0367e2ec)
1/*
2 * Copyright (c) 2014 MediaTek Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

67 unsigned int num_regs, int regofs)
68{
69 struct mtk_reset *data;
70 int ret;
71 struct regmap *regmap;
72
73 regmap = syscon_node_to_regmap(np);
74 if (IS_ERR(regmap)) {
1/*
2 * Copyright (c) 2014 MediaTek Inc.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

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

67 unsigned int num_regs, int regofs)
68{
69 struct mtk_reset *data;
70 int ret;
71 struct regmap *regmap;
72
73 regmap = syscon_node_to_regmap(np);
74 if (IS_ERR(regmap)) {
75 pr_err("Cannot find regmap for %s: %ld\n", np->full_name,
75 pr_err("Cannot find regmap for %pOF: %ld\n", np,
76 PTR_ERR(regmap));
77 return;
78 }
79
80 data = kzalloc(sizeof(*data), GFP_KERNEL);
81 if (!data)
82 return;
83

--- 14 unchanged lines hidden ---
76 PTR_ERR(regmap));
77 return;
78 }
79
80 data = kzalloc(sizeof(*data), GFP_KERNEL);
81 if (!data)
82 return;
83

--- 14 unchanged lines hidden ---