Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3574107pxb; Tue, 7 Sep 2021 02:52:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbrXdmRJXP0fQFDduf9HuuXOzwbipJqTzHY2Bqufg2bedGek6rKUl/aK+BWUm57gUA6k3M X-Received: by 2002:aa7:ce14:: with SMTP id d20mr1308014edv.132.1631008325460; Tue, 07 Sep 2021 02:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631008325; cv=none; d=google.com; s=arc-20160816; b=HATBTVTYX47IU7y9J6kTdIBrvC7uM2Bs+0txoTzeGGOUTCoPS/+MjguBjvUh2kGvQW 0S9o/zZYAE3vkwPtkrLo4xA5Ds+C1hl9oBMuhyk802jhW1i40NqBkdoVKI59EPheZO9k VFHuHHaWd+FntQWXF4cJb0znbhLmxWOu0etwlbxBx3175D4e+G2SQ2/abDM5iZE4B0U6 Equ4NIz/LAibPLHzsHH7gb6/+2eSwkkcwEoSVWMCiaYrVStSO4+UE8aDcL9zEzMg6ddq 0TnsTn+oVqjkKMG8ytaF5DjBAIAASHp1mA/+xjSrb1NmCJiSnPAF/CUtU/PkINL5oKzy iuuA== 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=FEEGkUdTFDxG6NvR1kMYcyslT3RlHRsOxsQ0LE6Zf8s=; b=YQ53TKmwBm12v03PExZn0snp5DC4SiOkrrRTci731Nhx8knsPef4OK1S15rIedI5w5 qpSBZN/asZFu1z3CuVFmRwhcN0k9dM2/cjwhVcfdXc1ARe3cKSSzED4YAt6zawXS8N8p +VFFkEchCJ2DOXKjZS4S4A6Tzv3b+n1VS7ZzwwmdSyfSo2XdI6mWk+6lLAhmA0hMRz/w oxQ51s9mceUSbOENR5kXortbzbu+k8VVCJbGpDiHtsRYdlu/YRBffGtu83+FFj+/1YFy mgNqufP4VDSeqf8LgyOy10rqxW8ZWd8oun3d7+Iw4lcDHAI51vJ2ZISh/lstEuurvfaG tGDQ== 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 du4si12213723ejc.696.2021.09.07.02.51.22; Tue, 07 Sep 2021 02:52:05 -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 S243194AbhIGIsQ (ORCPT + 99 others); Tue, 7 Sep 2021 04:48:16 -0400 Received: from mx21.baidu.com ([220.181.3.85]:58706 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242641AbhIGIsP (ORCPT ); Tue, 7 Sep 2021 04:48:15 -0400 Received: from BC-Mail-Ex12.internal.baidu.com (unknown [172.31.51.52]) by Forcepoint Email with ESMTPS id 1871BC97CB233B7F7D1C; Tue, 7 Sep 2021 16:47:07 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex12.internal.baidu.com (172.31.51.52) 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:47:06 +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:47:06 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , , Subject: [PATCH] clk: axm5516: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:47:00 +0800 Message-ID: <20210907084701.3489-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/clk-axm5516.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/clk-axm5516.c b/drivers/clk/clk-axm5516.c index 07e80fe8c310..3ab02b62b645 100644 --- a/drivers/clk/clk-axm5516.c +++ b/drivers/clk/clk-axm5516.c @@ -541,14 +541,12 @@ MODULE_DEVICE_TABLE(of, axmclk_match_table); static int axmclk_probe(struct platform_device *pdev) { void __iomem *base; - struct resource *res; int i, ret; struct device *dev = &pdev->dev; struct regmap *regmap; size_t num_clks; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1