Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3506550pxb; Tue, 7 Sep 2021 00:44:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH4clkZLOefnIBQJWnlaCaHL3FUIg5+U9QHjQkwj8R1gcdkvLU3TKfQ9LW+N7z34mwlcnY X-Received: by 2002:a05:6402:54:: with SMTP id f20mr17429985edu.382.1631000667788; Tue, 07 Sep 2021 00:44:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631000667; cv=none; d=google.com; s=arc-20160816; b=SxUnOrHGFS0NiI6OjC5EvdwUVH8v7rW2dG7vUGyfOrroVJwB2++k77WaPY6V0Gr8G0 e/mCaGYSll+fZsWOWzkzsqrcVRvLt9azinYqYHv28WoRchN227e4nGO/Oc1zF0jTmCh5 aftJfQB11s5fWL8dklGeTNkSC0bWv+VTwMUpFYFqsZBqCWRFq6ZoieN/0+G6EuK6mVBH XPVPuckmnczqvDSFyRWtmIyuOFzhSwIDQsCEKnZAM2Td2UTqiuyWHcY4rgsv0K2E8BQP SYpoC8XF2MIEBleke+UMfLV4or9c2YhYWu6/TSwvlWDuzEllzhuNA92+cWbZzgn3+eBF 6/kw== 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=s5Z3JE33ItilEUItijHSTbwiJAJaQ4NWouPrl4Ss9hw=; b=jDhSxiUS3gCDxe2+vhoE3Elv9FaEEghHlDXCfSTdDG/tIv3Umvxmd7LWaHOl2o63CS kpSfSoscJ2oWS6Xbm1L69vGXFtRXjo9hVLbokzJoY4+xmuw6/I8+7UtYkZ2FrHUX1bLU Ba2/TLHjVMjo4jsIwD6vVPooHhwhO6GjaoBto7+WYakiWeZZ6FSFxFoLUHJLZ4dUhzBm 9m8nIiTUvDUJiPuOhVBg5NRaDCb3VhYtX3KLyiQBryuih6FWEymLpJ9YPpxP4bWTJLeP TeLPpQX4RWBcUOph+1oBLv8pDeoaKLnlfJdqcyV2Xhv0cobQhXrMi1aGoKR3M3uH1uZy vboA== 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 bq16si9992947edb.303.2021.09.07.00.44.04; Tue, 07 Sep 2021 00:44:27 -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 S240557AbhIGHnM (ORCPT + 99 others); Tue, 7 Sep 2021 03:43:12 -0400 Received: from mx21.baidu.com ([220.181.3.85]:44134 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S240143AbhIGHmz (ORCPT ); Tue, 7 Sep 2021 03:42:55 -0400 Received: from BC-Mail-Ex32.internal.baidu.com (unknown [172.31.51.26]) by Forcepoint Email with ESMTPS id 8A40D8F6F99D9AD7915D; Tue, 7 Sep 2021 15:41:46 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex32.internal.baidu.com (172.31.51.26) 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 15:41: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; Tue, 7 Sep 2021 15:41:45 +0800 From: Cai Huoqing To: CC: Andy Gross , Bjorn Andersson , Jassi Brar , , Subject: [PATCH] mailbox: qcom-apcs-ipc: Make use of the helper function devm_platform_ioremap_resource() Date: Tue, 7 Sep 2021 15:41:39 +0800 Message-ID: <20210907074139.2400-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-Ex09.internal.baidu.com (10.127.64.32) 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/mailbox/qcom-apcs-ipc-mailbox.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mailbox/qcom-apcs-ipc-mailbox.c b/drivers/mailbox/qcom-apcs-ipc-mailbox.c index 82ccfaf14b24..71571eeef120 100644 --- a/drivers/mailbox/qcom-apcs-ipc-mailbox.c +++ b/drivers/mailbox/qcom-apcs-ipc-mailbox.c @@ -95,7 +95,6 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) struct qcom_apcs_ipc *apcs; const struct qcom_apcs_ipc_data *apcs_data; struct regmap *regmap; - struct resource *res; void __iomem *base; unsigned long i; int ret; @@ -104,8 +103,7 @@ static int qcom_apcs_ipc_probe(struct platform_device *pdev) if (!apcs) return -ENOMEM; - 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