Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp294836pxb; Wed, 8 Sep 2021 01:05:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs/SnEVzGrg+SVeswBVx7aHiBrHL1hTA5nk60hrdsRAhtbip+AgXB2R8W9yTRGIvwcI/B6 X-Received: by 2002:a17:906:3882:: with SMTP id q2mr2777839ejd.396.1631088347001; Wed, 08 Sep 2021 01:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631088346; cv=none; d=google.com; s=arc-20160816; b=hOZ/XfJBHyTbSBqbWHGEuCIv+QH6hKv/xsk9kjA9ZhaKbrO1zJnbMeRnJm14jjOvvs QZm4YhBlCFlkROEjhcrOppW6b650cF/QOLFz8f6bY/0XYcWPw21FDmHg5joc26pMy6OI zPebtM0oPBxPxBQK/FTo7/PiGokgeI7uXo2wu+R+hmTWNvn81AWGvWHqwJhd2j7GOEVJ mG2BwKVITy0QUjidvR6ahJFut33eqEU1CpIrL3FrabXPhabHD+lrdU+MkHg8AnXKfmn4 I11EFRkuedLYhxR/vFfNKKzBseg23LhoQ7rjf3fQt/6jlUpq+K0epkQ4XoY8bT+Sfzem 3n/w== 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=D9xwd/BL+J8+mrgebkHcRey+zB41ovOsRsir7COTUYo=; b=pUHEm9VzFtJCaDDRZrwYGpTg6vf8gDenpUPBkYXRKTCGYOnx9vZekP6HmjMVaZzeVU ZIH2qKg9/7ubuiGIB/WASct0SG9xOyfbdsN7QmtvYCAo7B6swFHH4PePrDmqV0D7iPbF 9usoplm9NobeJeDmZKLLhv3yOB7Rmq/onRUhHKCIcY2x5NHnerslz1thxOeNfLhy8m5z MbYavCY+GjRuE5yP1sQje4uNKICEBbPvNjBvgUDJu+xu5+3Vlg5Hp499JmISjknpbeWA sOaS5adgo7g+QwlVfxTyz8jCxA+T0FJr6gSuzrcAbKfMkP6i5gpL4H8iXgpe+QM+rVSz /XBw== 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 l7si2004402edb.409.2021.09.08.01.05.18; Wed, 08 Sep 2021 01:05:46 -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 S1348003AbhIHID5 (ORCPT + 99 others); Wed, 8 Sep 2021 04:03:57 -0400 Received: from mx21.baidu.com ([220.181.3.85]:56242 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234163AbhIHIDf (ORCPT ); Wed, 8 Sep 2021 04:03:35 -0400 Received: from BC-Mail-Ex06.internal.baidu.com (unknown [172.31.51.46]) by Forcepoint Email with ESMTPS id 02EF1479C868322207E6; Wed, 8 Sep 2021 16:02:24 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex06.internal.baidu.com (172.31.51.46) 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 16:02:23 +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 16:02:23 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH v3 1/6] PM: AVS: qcom-cpr: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 16:02:11 +0800 Message-ID: <20210908080216.1301-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-Ex11.internal.baidu.com (172.31.51.51) 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 --- v1->v2: [PATCH 6/6] Fix typo 'dri_id'->'drv_id' v2->v3: Just send it as a series 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