Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3565293pxb; Tue, 7 Sep 2021 02:35:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJLU8rYkscCPqbTEAvvKQNLA5lvDy14iNqSr1Fgs65gNnnI8GP7MzGyGu4mzSkQNHkAO0j X-Received: by 2002:a17:906:b183:: with SMTP id w3mr17415421ejy.394.1631007317212; Tue, 07 Sep 2021 02:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631007317; cv=none; d=google.com; s=arc-20160816; b=wuCR6jCq9ux/LnTogT+PlPiBTFZZKweBLgdzgoT2Rtf46FB3yU/bew2GHiDiaTwhZA 7de8ElTqPhcE+zqJmv6FjV7bLl25HBN3PHZmydsfYZ/7h9kT+1CRo+ceuOgUvL9JPtTC Uot+2lTtVVfMZZD0bXDR2Al7+igt0HrB/xFZ/q9HERs4qZTcKUemvXfcN0u/39hhumxa mrtxP/6RQZr7cQi8OaPakiFN49hcji2FZJtLFLDZ6jxe8sKXZPACRbGh/tWVjBVHOTUE 9lqZFFgKq35qAhi7SZ9c514JkUzVdFsOq4f6/C3C9oUDLLdHYODnfl1IMC0/h1eYjuuU TGrA== 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=7ATZOECOdEBTRPF92L3mjNd+L3VQ4eDndH5WdGGwSXE=; b=p/MgXKyu19FZO42pGiCl26/hXWHpPSJ6b9WdrPAa0NTx0b0Oi0rwRCPE3egws97Xfv dxAGk+HahmqEJub8nZmwIaEjmoEUFNx86+QYIBsW8D4s6LhpgYBABphB136M07/YKB2E XUvxTTy5TCscR74/UVydPi/0ioySTwYUbEbY2wv9/r/t7ZAP7Z2UKYwixlXV/usi1buM I9zySm7DuShu8PKXP6mvIsMhF30HzTd7EDE49V6k5z+Zguu1WkTu6YCZ33AQeyQH9vGY BIwOGmOB0ntjnMWNSEZaB12sqLp7rwDzK+e/tU8DkL7dxn1W9vatKzf5woPnHUbuWKSH TXYA== 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 s8si10482481ejs.239.2021.09.07.02.34.52; Tue, 07 Sep 2021 02:35:17 -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 S243146AbhIGIsJ (ORCPT + 99 others); Tue, 7 Sep 2021 04:48:09 -0400 Received: from mx21.baidu.com ([220.181.3.85]:58584 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S242641AbhIGIsI (ORCPT ); Tue, 7 Sep 2021 04:48:08 -0400 Received: from BC-Mail-Ex10.internal.baidu.com (unknown [172.31.51.50]) by Forcepoint Email with ESMTPS id DBF875D544D62974E80F; Tue, 7 Sep 2021 16:46:59 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex10.internal.baidu.com (172.31.51.50) 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:46:59 +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:46:59 +0800 From: Cai Huoqing To: CC: Michael Turquette , Stephen Boyd , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Manivannan Sadhasivam , , , , Subject: [PATCH] clk: actions: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 16:46:53 +0800 Message-ID: <20210907084653.3438-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/actions/owl-common.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/clk/actions/owl-common.c b/drivers/clk/actions/owl-common.c index 4de97cc7cb54..9e98e8a92ad7 100644 --- a/drivers/clk/actions/owl-common.c +++ b/drivers/clk/actions/owl-common.c @@ -43,10 +43,8 @@ int owl_clk_regmap_init(struct platform_device *pdev, { void __iomem *base; struct regmap *regmap; - struct resource *res; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 2.25.1