Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3566089pxb; Tue, 7 Sep 2021 02:36:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmZ1SoaGv+f8c942BAj7b1NdD3iTSF6NSrsZSoIvk0IA+IOdA7puzBAHTi0fa69CPF7VFu X-Received: by 2002:a05:6402:1d28:: with SMTP id dh8mr1430144edb.4.1631007411452; Tue, 07 Sep 2021 02:36:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007411; cv=none; d=google.com; s=arc-20160816; b=YJGrqHjcU9Nkr7p0+4LTFi2BshPvzzzVsHfnvyxkoTrnj4xcfu70xA52NzPbJRvxOG Aapu1yJLJv/matbe4Yt9IUKqT36vXwFIDPYTDxgFLMANlq1Thf0+CVmQhs3g+fOaXegS cDo2OZdpOwCqzlzSVuAkqZJQ+81uvZrtDfNNN5qgYwZq1zfYzTi6h2cO8rS0Ke9dBamy stgSor6hGuM7xhqn9BxzWLMaFzIa1bokRUiTYpHLXHqYFzEB3SPMDeBSXNeO1FYO9A2j gIR4HOmXsowfwI1jbqD70qznBvg2B1cwtArRkHkO8Am/j02HO8ayvyeFN4o+8XAgcro1 iqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mqrsIu3zkgLuXwZPoQKwOq/ZKrjZuhP5Y0KoAk105/w=; b=P7v5TrjEWXLg7ljPr+sbg7uMqTOV1GhrG6FQj8kvXVcm4Vq4wyov4VaQSLlijCVXAX jardCzKuY96W6jRLQPZj6/SnyYMzN1Y7wH/phyprjwIN6jK13fkHKe5ppDDxPpH6IOro B0jKLXIxR943K+xpViciUmnGatDFn72s4SjOyRB+Rb4Z6pt6hmWvWA7dizwkucLDa+QE VFoG3Fi6rUeezCS9eoXg888TvKnJIssqu+lR1clFdLRrELSie0wWfDjcp8l7pJG5i73h jP1sFYpuN8T6Vj8fk5vHrqgWFCqLTK4XFtb7T+WmiH5u4ZdkwEPUDPm1i4RjS92CsgAT MgmA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ne10si10647511ejc.93.2021.09.07.02.36.28; Tue, 07 Sep 2021 02:36:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243290AbhIGIty (ORCPT + 99 others); Tue, 7 Sep 2021 04:49:54 -0400 Received: from mx21.baidu.com ([220.181.3.85]:60214 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243795AbhIGItx (ORCPT ); Tue, 7 Sep 2021 04:49:53 -0400 Received: from BC-Mail-Ex31.internal.baidu.com (unknown [172.31.51.25]) by Forcepoint Email with ESMTPS id 33E664A2541EB5C5161A; Tue, 7 Sep 2021 16:48:43 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex31.internal.baidu.com (172.31.51.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Tue, 7 Sep 2021 16:48:42 +0800 Received: from LAPTOP-UKSR4ENP.internal.baidu.com (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 7 Sep 2021 16:48:42 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , , Subject: [PATCH] clk: mvebu: armada-37xx-tbg: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:48:35 +0800 Message-ID: <20210907084836.3948-1-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex09.internal.baidu.com (172.31.51.49) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the devm_platform_ioremap_resource() helper instead of calling platform_get_resource() and devm_ioremap_resource() separately Signed-off-by: Cai Huoqing --- drivers/clk/mvebu/armada-37xx-tbg.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index 585a02e0b330..5d86912fbb6e 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -84,7 +84,6 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev) struct clk_hw_onecell_data *hw_tbg_data; struct device *dev = &pdev->dev; const char *parent_name; - struct resource *res; struct clk *parent; void __iomem *reg; int i, ret; @@ -105,8 +104,7 @@ static int armada_3700_tbg_clock_probe(struct platform_device *pdev) parent_name = __clk_get_name(parent); clk_put(parent); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg); -- 2.25.1