Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3573970pxb; Tue, 7 Sep 2021 02:51:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb2idfd76niFNwZNkIGremxYtJP5x/lGx6T4rbTO5oPC5FHd7leUh1qG749+rRQ5syvexD X-Received: by 2002:a05:6402:caa:: with SMTP id cn10mr17388056edb.202.1631008309203; Tue, 07 Sep 2021 02:51:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631008309; cv=none; d=google.com; s=arc-20160816; b=frkUPLIXHJS0le545MWH5zQu3CUxbA8MTMlAU8Ib5EJMeirTCV2qbpnWcVdZOB9IWZ vveDpveW6LSQbmuKyaNG7GKWm0J3b/cj7q7nOsRp3Nzj8yNdDgt07KyrZyXg39Rn7Db1 IMU7RXiPVUnI9H59CD3oMHmULoTI5nXKCN3PsTpjv1vthepfEf8OPuSoF6Oe0u+3KKl9 OF0Kq+HHLrRZCwIBkx2a/c7YUWIIzVWRmPGDWtv560AA7IIWkaKmpUZlpyoY8jHOZeuL LKtwRLzTH4Ta3I65DCyYSL6CBbrH0Lm8OWuv+a2KGcpSCvwBRIlyPWTGdP4Skcffww2X LeeA== 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=22R0J2AYrkozCGn39dCm6KK9rpILtVNgOsieJhK6lgs=; b=iU5hVqlRKHmAmbgWCCU2jXEUdfBX9Yl12eA1s0gMUCz52wT+6st/YQv02ILH4+2bVY RldWE7cEsQ1Rq4NE19UeBe04+wUeVcouLj6xgCdh8jkp5Fo9HP6p68/75vr+NYNx0GC1 E9qldX8R08uzBOUC+VFbQ9r9Y5lR8YYsB+d57NsIydy6LjHX82k4YKfNbAc6ClLh+/WF qc9KqLp9WU8Jrj6QdEmjRvIbkh15ttAIXQO8DeCw4/7joBFbVi2tJ6igfADmtEczVESh EyRlXUObxXm+LuNwW6tNWdb+hsv2bHfpY8XVZqdIXJlSexGn61LRZsCXXEVNGzp+XPOU TlBA== 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 l7si13559605edb.409.2021.09.07.02.51.22; Tue, 07 Sep 2021 02:51:49 -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 S244380AbhIGIxv (ORCPT + 99 others); Tue, 7 Sep 2021 04:53:51 -0400 Received: from mx20.baidu.com ([111.202.115.85]:36072 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S243090AbhIGIxt (ORCPT ); Tue, 7 Sep 2021 04:53:49 -0400 Received: from BJHW-Mail-Ex09.internal.baidu.com (unknown [10.127.64.32]) by Forcepoint Email with ESMTPS id F0F063CB805D535F0C0B; Tue, 7 Sep 2021 16:52:41 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BJHW-Mail-Ex09.internal.baidu.com (10.127.64.32) 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:52:41 +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:52:41 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , , , , Subject: [PATCH] clk: sunxi-ng: ccu-sun9i-a80: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:52:35 +0800 Message-ID: <20210907085235.4815-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) X-Baidu-BdMsfe-DateCheck: 1_BJHW-Mail-Ex09_2021-09-07 16:52:42:002 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/sunxi-ng/ccu-sun9i-a80.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun9i-a80.c b/drivers/clk/sunxi-ng/ccu-sun9i-a80.c index ef29582676f6..2fca2cc53dd4 100644 --- a/drivers/clk/sunxi-ng/ccu-sun9i-a80.c +++ b/drivers/clk/sunxi-ng/ccu-sun9i-a80.c @@ -1213,12 +1213,10 @@ static void sun9i_a80_cpu_pll_fixup(void __iomem *reg) static int sun9i_a80_ccu_probe(struct platform_device *pdev) { - struct resource *res; void __iomem *reg; u32 val; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(&pdev->dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg); -- 2.25.1