Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp297874pxb; Wed, 8 Sep 2021 01:10:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/MbkI/zxShL576LAlBMjFwjkYQfUQl2y8OOX7494VHzMe0NK1i9BQTjuBrvSzEq0K4Fty X-Received: by 2002:a17:906:5953:: with SMTP id g19mr2752363ejr.443.1631088653545; Wed, 08 Sep 2021 01:10:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631088653; cv=none; d=google.com; s=arc-20160816; b=lia9kqP+kWSr3k32K/v8kkRMBQlganlIWP/58T/3UDrxLpGLcDjorQ/AOUpw0P2aAg AVZbRLBCRyxdb1x6CxxQBRBN8hpwn4kOZm2/X0es2eeXSohpaV5GnjAa4ACBrHUfr+AF +ZpA0vlHycwgMrKAjfCRxwjs6jNzu8fXQpquJm0sSB2ZBJ0QJiLzf3FRXIxOWTS238Cb AZc0oUE4T/qLPjFk8mcHM4ewVWCFkOPSOPPPXtIbX5f3q7xwhxpSncnEuhZK8Gs2b96P 0PLVJXy3iS1toJvmKnUenB1fdqlIW8Ec4X7KUoSpW0VGbuh8FgPGMZbUwRevmaCuXN9r EdRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=vwMFyRof9GSnV2mBeAxB+YmY0m19avyLtWHJKamQjq8=; b=Pyh1eVDEunrTwfpD3S3VcvCpUXSb5S8er6/9tZi6ib0GnkGKpjTR4IuCBfUY8nqHvw CDQAweUyBII1Fd8rEu3PM60Q7n7+mSyST3TQbdYoa1P+FJkwcQqdwn0lcGQDxs5BYLye h62XtKzDGAyYXe7wNZ6TWALztzmW+nYZdGOPtICyf3lPxlY7akBxvH7QGjd3iXMi6kYW O0RqJJfhfpgTWAtriX9XZRBHsGh5H9KvglGrz6ZVK7r7xoFTPnbobfm9hsDHT5WcfUpN 9yjwM2KaMwZhSsouRNW+6KlK0D3dkfvRZaBf4kD7rpRmPxwgYCUCE4BLOvGk/z5eOPRr aHyA== 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 he40si1475785ejc.705.2021.09.08.01.10.25; Wed, 08 Sep 2021 01:10:53 -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 S1348629AbhIHIEV (ORCPT + 99 others); Wed, 8 Sep 2021 04:04:21 -0400 Received: from mx21.baidu.com ([220.181.3.85]:56430 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1347679AbhIHIDk (ORCPT ); Wed, 8 Sep 2021 04:03:40 -0400 Received: from BC-Mail-Ex03.internal.baidu.com (unknown [172.31.51.43]) by Forcepoint Email with ESMTPS id 2A04356DD1AA7803C776; Wed, 8 Sep 2021 16:02:30 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex03.internal.baidu.com (172.31.51.43) 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:29 +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:29 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH v3 4/6] soc: qcom_aoss: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 16:02:14 +0800 Message-ID: <20210908080216.1301-4-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908080216.1301-1-caihuoqing@baidu.com> References: <20210908080216.1301-1-caihuoqing@baidu.com> 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/qcom_aoss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index 536c3e4114fb..c42b80ee3920 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -521,7 +521,6 @@ static void qmp_cooling_devices_remove(struct qmp *qmp) static int qmp_probe(struct platform_device *pdev) { - struct resource *res; struct qmp *qmp; int irq; int ret; @@ -534,8 +533,7 @@ static int qmp_probe(struct platform_device *pdev) init_waitqueue_head(&qmp->event); mutex_init(&qmp->tx_lock); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - qmp->msgram = devm_ioremap_resource(&pdev->dev, res); + qmp->msgram = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(qmp->msgram)) return PTR_ERR(qmp->msgram); -- 2.25.1