Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4180938pxj; Tue, 15 Jun 2021 17:39:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIhpiVWagQZpx/aaDOkfEo18AoFxyhkD32uJhwNPFMPxMcp48FkWGNBZUWUv6Q/yers97e X-Received: by 2002:a02:c6bb:: with SMTP id o27mr1630138jan.85.1623803941509; Tue, 15 Jun 2021 17:39:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623803941; cv=none; d=google.com; s=arc-20160816; b=OhFWHRVmZ/y6GwaQq1wua+un/iEUi0z9qul59GSWwloniYEYBhwG3orJCWULUBY5Lw YelIBkx3K/4sziSF/22k5PqKx74I+XNIb7t5a1hF4l3VzDJYpSz1UR1fvmzTn5uCNu9M l60T1ITc74DICvmgIxdURQQXVg4/lU5mf8I/V+EnbAeuKOUCW9yAWhWBnifz+krPmCpR QZlENw/FtQSl1o5PPC58b6FHSYTg8LAXuRm1ufqBomz0jeky0bqQ5FQ0XeFTIqvuQPZh IQp7XyhgaqHy9jwRv8BgxMsZ546R7QXdRNjTIH9ZkjdHNUWmN3fD2B9580uv1UYG7aQh x2Hg== 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=WHE5YY4VUj0BAYbQEL7rnpRHslbFinQVf7mCZVCr8qduHYFbICj5UuvADHulbB0z2m qmtS32BiCO4OjxYyxs/i3aqojAVZ6iGV6aOePvLxZ3EBOWXCPTf0FFdiFEiIY75M9I9M WoWxF0pgnFxp5iKNkqSh9UY/ZzwlAay2IunDJYm7Vz6JqkO+D8/+ei1dJ6sU6zxZ3d7t PukPJr3cKDlgWhSFwpV1Rm44ualOJa9p8WyB6cGDSFIT+ODFjr7Qcli1p2FZPzqwu1py 9rjhHsHTSbKuvzllfyL45jZhW6G48/zBBATGnHzwDG9qV7KK0kv7tv2URXAsQgclZWOQ MgRA== 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 l9si551000ilg.46.2021.06.15.17.38.49; Tue, 15 Jun 2021 17:39:01 -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 S231765AbhFPAkM (ORCPT + 99 others); Tue, 15 Jun 2021 20:40:12 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:49039 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S231761AbhFPAkL (ORCPT ); Tue, 15 Jun 2021 20:40:11 -0400 X-UUID: d817e9c06b234b3ba5b987462741f29e-20210616 X-UUID: d817e9c06b234b3ba5b987462741f29e-20210616 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1449721008; Wed, 16 Jun 2021 08:38:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Jun 2021 08:38:00 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Wed, 16 Jun 2021 08:38:00 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , , Chun-Jie Chen Subject: [PATCH v10 03/19] clk: mediatek: Get regmap without syscon compatible check Date: Wed, 16 Jun 2021 08:36:27 +0800 Message-ID: <20210616003643.28648-4-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210616003643.28648-1-chun-jie.chen@mediatek.com> References: <20210616003643.28648-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