Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp264819pxb; Wed, 8 Sep 2021 00:11:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8WsAMfGc4fgiAqNk8DYuMkn7ZucoG+hQx6+OvpHV3BE/q2blBiqHb7oJF6H8d20qYgAG9 X-Received: by 2002:a17:906:9b87:: with SMTP id dd7mr2619373ejc.99.1631085102853; Wed, 08 Sep 2021 00:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631085102; cv=none; d=google.com; s=arc-20160816; b=j+4gSqTg+785VGB0gZ6ECu2O8j7j1CpMLCCLcVO9/k6FFbn9AnBq7BVrfRd+VjFs8z UvHdYDG9PNCyfZ3sKWbPCsEitCknMM1hitm5ee59L2d7lWW2QOgPbPKcqs8wOmfOR/Gp Qa2lsHqtVDgu69H13oaKGG7KseRLHBfFb2Bw6Pw6Uu552TeHmftjC6S0U7r1eJyUxKYq TIfYjfZRRBXT6jy0y74gc8dvCg4DLD2DAgE9zJ+mVYgxb7t9KvYD0mbE4igQ2q9P8hl9 K8FfLBZD9g6PPuV7IUsK3waVOr8rdCW+YEtIOIfM/duLhx/gE8Mdai07gg9Ig2F0Q39a qBDQ== 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=hr4o7EgyWVe0iazay0Pe3YQY2XQd4cLTu8FpWvEJ0aY=; b=dfBfgaXCFhEF0SxIsLMdZv8RHCBp45Oi6eFbuAeph9IG7iMXrjBREpPjoiHBTuIKH7 cJkLA6rEkzknN0IwHgZYKc0jbSjjQTiLjmD8WKagMC7BXH6tPrHuXW4ew7oz6RcP1cRb UDGMcomPE5w1j054qbLCesI+CU/iEx2d9XjPsxnfL8ySANdzH4k63FW/DudY73skKKpj 4eYYwJc1fpDVMf/m9YNofUZwk6VnHiFCwBOcb2HvAJp8pQTP6oi1VySTiF6OoQDXLfPJ fegNebMCoT8D+zn9jRquGCCMP+5/Llsc7kAGBkZc7y9tjBycR1Ucxp48Z4JiLd5pBofH K2MQ== 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 t6si1322994edc.485.2021.09.08.00.11.19; Wed, 08 Sep 2021 00:11:42 -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 S1346276AbhIHHK6 (ORCPT + 99 others); Wed, 8 Sep 2021 03:10:58 -0400 Received: from mx21.baidu.com ([220.181.3.85]:54880 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S236197AbhIHHK5 (ORCPT ); Wed, 8 Sep 2021 03:10:57 -0400 Received: from BC-Mail-Ex15.internal.baidu.com (unknown [172.31.51.55]) by Forcepoint Email with ESMTPS id BAAF05767B602141B94A; Wed, 8 Sep 2021 15:09:38 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex15.internal.baidu.com (172.31.51.55) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Wed, 8 Sep 2021 15:09:38 +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; Wed, 8 Sep 2021 15:09:38 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH 1/6] PM: AVS: qcom-cpr: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:09:25 +0800 Message-ID: <20210908070930.214-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: BJHW-Mail-Ex11.internal.baidu.com (10.127.64.34) 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/soc/qcom/cpr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/qcom/cpr.c b/drivers/soc/qcom/cpr.c index 4ce8e816154f..1d818a8ba208 100644 --- a/drivers/soc/qcom/cpr.c +++ b/drivers/soc/qcom/cpr.c @@ -1614,7 +1614,6 @@ static void cpr_debugfs_init(struct cpr_drv *drv) static int cpr_probe(struct platform_device *pdev) { - struct resource *res; struct device *dev = &pdev->dev; struct cpr_drv *drv; int irq, ret; @@ -1648,8 +1647,7 @@ static int cpr_probe(struct platform_device *pdev) if (IS_ERR(drv->tcsr)) return PTR_ERR(drv->tcsr); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - drv->base = devm_ioremap_resource(dev, res); + drv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(drv->base)) return PTR_ERR(drv->base); -- 2.25.1