Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp322669pxv; Wed, 30 Jun 2021 06:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8LOW3y8ne2T4dO2d3wRKE0QD+9LQktDibl3rLfnHuAv0XgK/uA9nxk6ResdJt9oYdIIjL X-Received: by 2002:a92:b745:: with SMTP id c5mr6116457ilm.230.1625059855060; Wed, 30 Jun 2021 06:30:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625059855; cv=none; d=google.com; s=arc-20160816; b=Jpw6iGBZCS7gBJvxpij4gmS5C0CBAfKueiDmlTocN/k6ndn2OoCmlmuBTopUwBExRv maxLQn7/BQ9Y7DLxRncy70mEpAs2tYdpFwPc1xga/sXw0UodzLjO/uGCniDQiwGAnVgX ll2geWMURLj3iIYAJxEnNcJ5XqqSyVrc/cyEFAa6qF56yLSFIZzj4JDzlkDm89sns9WY QGJDzbqPT7H3kQotp2/FE7sXb8ROPBvKKYcRSFsdyhdFhtrmJhgMLi8wOafkNSpGx0dF L4squqItXztAcQ4QXxWVxTPh89E4l24IYYVg+q4CiXxkkc2/ovBUmdZk4mLb1p70c4zS rA2g== 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=t9tPqOl2sOEQYtjBGM4qmthC+Zbg3lDV8QAVfbOkO4HTNkYWC3lQKIRxZ6y52KKZ4X PQ4Cv+ac2KCSEb6gk6OtLYR83OapUOVF0MAAq+0VjyWGtlWPtWK7VzZ2O8EughRTnxqz 8sfBIT7Cig8xD8BpabNXJPzYlfYPS+VbqopVRdjb3DT+Oxb+gGdjAWpXDjqEavsap8hN HlMOejkVNLTLQKm/LpMy3Xh+LkIoFb4WqqG/Hm1E69DY/SODM7vAwZDBjw1CsW8QihIe WRTJxNz3tDF9msaiPbgMNF0pMGyKe7ssIdX/zLvl1ei7Zi3kfg5ldCw1ULwtnnXInItI pPHA== 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 f20si17499959jat.99.2021.06.30.06.30.40; Wed, 30 Jun 2021 06:30:55 -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 S234886AbhF3NcY (ORCPT + 99 others); Wed, 30 Jun 2021 09:32:24 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:55729 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S234885AbhF3NcW (ORCPT ); Wed, 30 Jun 2021 09:32:22 -0400 X-UUID: 791d3e2e0a3d499dadbe416af4dfec98-20210630 X-UUID: 791d3e2e0a3d499dadbe416af4dfec98-20210630 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2021245669; Wed, 30 Jun 2021 21:29:51 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n1.mediatek.inc (172.21.101.16) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 30 Jun 2021 21:29:50 +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; Wed, 30 Jun 2021 21:29:50 +0800 From: Chun-Jie Chen To: Matthias Brugger , Stephen Boyd , Nicolas Boichat , Rob Herring CC: , , , , , , , Chun-Jie Chen Subject: [v11 03/19] clk: mediatek: Get regmap without syscon compatible check Date: Wed, 30 Jun 2021 21:27:48 +0800 Message-ID: <20210630132804.20436-4-chun-jie.chen@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20210630132804.20436-1-chun-jie.chen@mediatek.com> References: <20210630132804.20436-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