Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4400531pxv; Mon, 5 Jul 2021 23:22:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbSza2NjIRt2e1iPO118+ko6UL4YSWYy5wrIhSzEY5gnVTb4W9LE3NU4XFWvlY/AeRqmN/ X-Received: by 2002:a5d:858b:: with SMTP id f11mr14840279ioj.156.1625552546771; Mon, 05 Jul 2021 23:22:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625552546; cv=none; d=google.com; s=arc-20160816; b=TB94IyWtK8K6Vhy7uvakgl39iga3fWDjaW8oYR22ZXyppzxTOnZ93LLwXHdNv3CByR ivxP4PJ1UCVanShpLN5p3XFY9LrF64rauISYM2rrMAiXkIls4GUHBLjKvCmeDlKDsBlg KlT7E+6U4nAy7KGLIAH2s9b2j4KOuwSC97HYlkHtvblap327Aa+R8KCuqM5XeqPwqvZI lbYJYQbO2RR3A4Z5I9og7HuaGyrwYR+uJE4ZaZGPxQKnZ/J5zl2EVSgYKyKu0z+aA4Sm RSFHeTLo49Pomtj97Z1jQtzEWUd6Fa96TBn7fR+8q+7jC/hlQD0jf9swbzaysFl2V6HG +aSg== 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=TKiOwhPlPd0Kd307MU2UoWpLQePFdJ9MyiQQ7SpO1thTfS2oxeafqvJQPZXbVxP29F oEUo0pg1/HtpdUR0fwF7SEIn2MQLKdjVl/DXSWdC8/Xxk8f84UJI9uvcE0C4Apl7TsdG VuJgKhmUwtdlKjcn5nWICZY/lmBICBAm3V096fsA51cg2BY4BqgRCdOSRFlXbVlycp2g Fhg/7OIkg77hyLyJLOV360XTGQeZqci5evL9Lh/2GOKZ92roCflBI4osJ2iBPCN9BKIe fmG/+WthO11j6z8cuKnTK9cnAP9Jfier8Sjy0OKV0XTeR+wvRGcVXiU3uJiJLwGxKQnb 5kog== 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 e25si16504499ioh.19.2021.07.05.23.22.15; Mon, 05 Jul 2021 23:22:26 -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 S230146AbhGFGXF (ORCPT + 99 others); Tue, 6 Jul 2021 02:23:05 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:38149 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S230130AbhGFGXD (ORCPT ); Tue, 6 Jul 2021 02:23:03 -0400 X-UUID: fa379d9bb4c0440c997a246baeffd82c-20210706 X-UUID: fa379d9bb4c0440c997a246baeffd82c-20210706 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1648259638; Tue, 06 Jul 2021 14:20:23 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs06n2.mediatek.inc (172.21.101.130) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 6 Jul 2021 14:20:22 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 6 Jul 2021 14:20:22 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , , Chun-Jie Chen Subject: [v13 05/21] clk: mediatek: Get regmap without syscon compatible check Date: Tue, 6 Jul 2021 14:19:04 +0800 Message-ID: <20210706061920.16013-6-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210706061920.16013-1-chun-jie.chen@mediatek.com> References: <20210706061920.16013-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