Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3420969pxv; Mon, 26 Jul 2021 03:59:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxki/GZBrDbzV3tRq32ARyj1H82Qqit108QEeR4tKOMwAU8UhxBxETB6Ih2/DjWqPe6UDtM X-Received: by 2002:a17:906:8047:: with SMTP id x7mr6202696ejw.453.1627297199479; Mon, 26 Jul 2021 03:59:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627297199; cv=none; d=google.com; s=arc-20160816; b=aZiSpeZ+D2u9GXo7O+73qDi2uVm2m3yoXeNo0UmE39PyRVh9HhRKeZLehBrYr9TzC8 8BbjNWcwkuaGiBrdF1Rn1nO4TN06+JuxrfDw3NIOUZP5Oo9DCpAMYdllJHSUAOSyUh9H JsMntpmXwbohhl4cUU4thCrXjO083ylHYPvcMvMazX//JS1aI14dLDGTRY9MPEqOgK0d Cj8R0TkhOg/Qig9lrhzYye3CJIyubwDTKTGh5Jrj0Jb+sEfz1GGMEXBkcvi6roGudrWo WC01sQOdwwGip+2nYOYDNccEPmn0cT9ZUxp4N81F/RBmxuds0izPfC5GKZK4vnbsYHLN B6qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=EK4m4isSVHfm8RPhwAVJgToypE8RrjMk+anKdlh6gHs=; b=QyuZnk0D0toNqhOZ8DofunV8VlyN3R6P20qvOW5rdF6qYS3DPcb/06aaowrAhXAk7/ 7veQbe3NpW3QYg7UsaQUOVPGy7Pu9QM3Zkm9crvYxqqfvg/eH0jxUQNvm6UNWLnerP1r 098DOVmOO1jAJgs+mFL9AhlnSgbcMbu/T7PcREQrJlZi3bkUbO/W10p+f7RscbjHMUZ/ tZzEvkJZ1yek/P7Htyz0IReve303jPHWH4m2ngLme3XEY3utzF1edUeOGd0Uo5OfahG5 nsY8SyGYOrI0sem0lEvTK44kxLIFB3D7qohokmfMgzS1tr3HVBUALHC2OQCY0E2OGXwn xx8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d11si148198eja.687.2021.07.26.03.59.36; Mon, 26 Jul 2021 03:59:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233291AbhGZKRd (ORCPT + 99 others); Mon, 26 Jul 2021 06:17:33 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:34260 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S233287AbhGZKR3 (ORCPT ); Mon, 26 Jul 2021 06:17:29 -0400 X-UUID: a5980b63cef64bb3886dcbe6f3d68b88-20210726 X-UUID: a5980b63cef64bb3886dcbe6f3d68b88-20210726 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 564945308; Mon, 26 Jul 2021 18:57:56 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Jul 2021 18:57:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 26 Jul 2021 18:57:54 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , , Chun-Jie Chen Subject: [v14 05/21] clk: mediatek: Get regmap without syscon compatible check Date: Mon, 26 Jul 2021 18:57:03 +0800 Message-ID: <20210726105719.15793-6-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210726105719.15793-1-chun-jie.chen@mediatek.com> References: <20210726105719.15793-1-chun-jie.chen@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/clk/mediatek/clk-cpumux.c | 2 +- drivers/clk/mediatek/clk-mtk.c | 2 +- drivers/clk/mediatek/clk-mux.c | 2 +- drivers/clk/mediatek/reset.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/clk/mediatek/clk-cpumux.c b/drivers/clk/mediatek/clk-cpumux.c index 79fe09028742..61eeae4e60fb 100644 --- a/drivers/clk/mediatek/clk-cpumux.c +++ b/drivers/clk/mediatek/clk-cpumux.c @@ -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)); diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index cec1c8a27211..37d2aa32175e 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -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)); diff --git a/drivers/clk/mediatek/clk-mux.c b/drivers/clk/mediatek/clk-mux.c index b0c61709bacc..e97d58db28cc 100644 --- a/drivers/clk/mediatek/clk-mux.c +++ b/drivers/clk/mediatek/clk-mux.c @@ -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)); diff --git a/drivers/clk/mediatek/reset.c b/drivers/clk/mediatek/reset.c index cb939c071b0c..e562dc3c10a4 100644 --- a/drivers/clk/mediatek/reset.c +++ b/drivers/clk/mediatek/reset.c @@ -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)); -- 2.18.0