mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
clk: mediatek: Get regmap without syscon compatible check
Not all clock providers need to be marked compatible with "syscon" for system configuration usage, so use device_node_to_regmap() to skip "syscon" check. Signed-off-by: Chun-Jie Chen <chun-jie.chen@mediatek.com> Link: https://lore.kernel.org/r/20210726105719.15793-6-chun-jie.chen@mediatek.com Reviewed-by: Ikjoon Jang <ikjn@chromium.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
f35f1a23e0
commit
197ee5436b
@ -84,7 +84,7 @@ int mtk_clk_register_cpumuxes(struct device_node *node,
|
||||
struct clk *clk;
|
||||
struct regmap *regmap;
|
||||
|
||||
regmap = syscon_node_to_regmap(node);
|
||||
regmap = device_node_to_regmap(node);
|
||||
if (IS_ERR(regmap)) {
|
||||
pr_err("Cannot find regmap for %pOF: %ld\n", node,
|
||||
PTR_ERR(regmap));
|
||||
|
@ -106,7 +106,7 @@ int mtk_clk_register_gates_with_dev(struct device_node *node,
|
||||
if (!clk_data)
|
||||
return -ENOMEM;
|
||||
|
||||
regmap = syscon_node_to_regmap(node);
|
||||
regmap = device_node_to_regmap(node);
|
||||
if (IS_ERR(regmap)) {
|
||||
pr_err("Cannot find regmap for %pOF: %ld\n", node,
|
||||
PTR_ERR(regmap));
|
||||
|
@ -165,7 +165,7 @@ int mtk_clk_register_muxes(const struct mtk_mux *muxes,
|
||||
struct clk *clk;
|
||||
int i;
|
||||
|
||||
regmap = syscon_node_to_regmap(node);
|
||||
regmap = device_node_to_regmap(node);
|
||||
if (IS_ERR(regmap)) {
|
||||
pr_err("Cannot find regmap for %pOF: %ld\n", node,
|
||||
PTR_ERR(regmap));
|
||||
|
@ -98,7 +98,7 @@ static void mtk_register_reset_controller_common(struct device_node *np,
|
||||
int ret;
|
||||
struct regmap *regmap;
|
||||
|
||||
regmap = syscon_node_to_regmap(np);
|
||||
regmap = device_node_to_regmap(np);
|
||||
if (IS_ERR(regmap)) {
|
||||
pr_err("Cannot find regmap for %pOF: %ld\n", np,
|
||||
PTR_ERR(regmap));
|
||||
|
Loading…
x
Reference in New Issue
Block a user