Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp343657pxb; Wed, 8 Sep 2021 02:31:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJweXJSu1iu6JcAIQ4VjHhL4txXP6FMKRUagoFBBFFet0XN1EuWrIKfMt1PYOqILFTwahixn X-Received: by 2002:a17:907:1dcf:: with SMTP id og15mr3090075ejc.470.1631093469229; Wed, 08 Sep 2021 02:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631093469; cv=none; d=google.com; s=arc-20160816; b=M1Ag/AF6IcWU4mIr95mHJl+2K+Mmw7rs2rwnLqFvQlsdPkgvqzP+mbWkpC1fU6eQo4 bbLaU5ZbpWqBs5uRIz4Gn+71IJ/fXMucMjTtfk1JpPjtAFNgRfmE9Q2oWWaBM+R44shh rvZwlbKQeq+GWeMJarmwxql1+LfdHKqM1X+bvvBNHnZ/8N4YwDEZPHUewKVN274J1UO4 uHG7BWONopBPHUKRaDzP4SAHwbVgAZEqzJZM+m06/6E/kk/JbOnC91F13JuJu56oR0RC biuc4wKWNupmvt/KR1uFN4duz+l9luzFHzp4C29iLdOvnPaiC+/ksWuM8GjOAiIlaBOf L6xQ== 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=TmFsHXFnTqzuskUq3HX12mKFujW78kUBRg66mzlDXTA=; b=SKC1s5HeyimAyMldFEng2TILxZfTGpWkHoxWGHvXVvBFV+xlzbN36+6YU0O2sr0jg4 iJceD9fER/5WyrC9LUKljoLvXMz4C26wFUbYKBOPlyqswB0LL+8sriGi5V05OwjVFnPL n186EhFg/o7FuSCCu/jPhr9ZZKixR92+ZlhmQx+ZOiXJ/aWqSu68s5ApHZJQ3PWlVvNL FbTh1yYLFFIcLR/Yoh92r+pxAFMJwk5owxstPq/pe63GsaLo+4IWGSsRdiLKCfLjfezL SbmnSnJYZDMTt0gBdIVr4pp5vumwTiMT3+5YHf+h4/ron299kPeIsbHwLP6Fdj9UlrgM 2RLw== 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 l12si1676352edv.561.2021.09.08.02.30.45; Wed, 08 Sep 2021 02:31:09 -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 S1348323AbhIHHLW (ORCPT + 99 others); Wed, 8 Sep 2021 03:11:22 -0400 Received: from mx21.baidu.com ([220.181.3.85]:55046 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348015AbhIHHLD (ORCPT ); Wed, 8 Sep 2021 03:11:03 -0400 Received: from BC-Mail-HQEX01.internal.baidu.com (unknown [172.31.51.57]) by Forcepoint Email with ESMTPS id A91D8B3D176045BE1176; Wed, 8 Sep 2021 15:09:45 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-HQEX01.internal.baidu.com (172.31.51.57) 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:45 +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:45 +0800 From: Cai Huoqing To: CC: Niklas Cassel , Andy Gross , "Bjorn Andersson" , , , Subject: [PATCH 4/6] soc: qcom_aoss: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:09:28 +0800 Message-ID: <20210908070930.214-4-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908070930.214-1-caihuoqing@baidu.com> References: <20210908070930.214-1-caihuoqing@baidu.com> 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/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