Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp286083pxb; Wed, 8 Sep 2021 00:50:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzo/XYoZg1f9pt/uDDLT2VjsJNMsY6IAsG3MkvOD1q6grtTbRVqkb70j3mERKRjf+TJRki9 X-Received: by 2002:a17:906:3054:: with SMTP id d20mr2632694ejd.294.1631087432265; Wed, 08 Sep 2021 00:50:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087432; cv=none; d=google.com; s=arc-20160816; b=n2oJ91CReXsmTfja8VOfL8EKYwjx+xV5He4mPutNIiwWmiu9PmeNIoEmv+IGEoMn1D +Rzq45HFd814/+Isidf/DIgRsHgUuTG7ELqXh9QiwSfXnrBPdj4RFPxm945/TiyNu2qa /7HXDzWqLQOtu/CjK5Ybl4Ln7lL+cnGc18WJzudRJKXQIoJ2vxL/rEGs/di7c6/hN8Ck DKls+7H5yjjBqMxVuxysXkNbZQldloUig7iGUmKnNJCTFfdvIrL6r003p6F5pv3K2ZYF JX8hyvQ7u4h5Uz4G/TwghV/TRilGoIYWEmPqte08HY9EsOkLZ0FMCGsRRYgTvS74ABdK Hb1A== 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=tUQo2zSzvDiTMXO/P4+RywYGnnNjesec3XdotvqzD3Y=; b=u5BU3ykD+d1uNv6mEm/LBj+vKVV21oANX1TYVds1MBGZEPy/tJeKBhj3QbHhSg/Qt/ iOTYu5vqbeJQWV9hKJs+D3BQXoAqkMpAR5r/lUDDQ341Ta7FIuTDVPpd+3PST7Zmy1VB OdxiQ4QVFeytb4xVJCIOCpNN9bN0mGv1wsxUWI7mdrioBfGno+krSbYws1Toig6DTxri iwsJuobOkX+yEmmWENFFz+SKe7eQ77EIydVl959ACJsjPe3sb3TYXzb2KT4vM3ykb0ko KduGSeTxu5Tp/GVJfXm/kcNLrDu57aOJzFi2u8nihFlOC6W5m4JworKxQJKFPaEp56Wa sWIQ== 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.00.50.09; Wed, 08 Sep 2021 00:50:32 -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 S1348629AbhIHHMq (ORCPT + 99 others); Wed, 8 Sep 2021 03:12:46 -0400 Received: from mx21.baidu.com ([220.181.3.85]:57630 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1348522AbhIHHMo (ORCPT ); Wed, 8 Sep 2021 03:12:44 -0400 Received: from BC-Mail-Ex31.internal.baidu.com (unknown [172.31.51.25]) by Forcepoint Email with ESMTPS id 1004E927106F60D5A71A; Wed, 8 Sep 2021 15:11:35 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex31.internal.baidu.com (172.31.51.25) 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:11:34 +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:11:33 +0800 From: Cai Huoqing To: CC: Neil Armstrong , Kevin Hilman , Jerome Brunet , "Martin Blumenstingl" , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Florian Fainelli , , Li Yang , Krzysztof Halasa , Matthias Brugger , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Thierry Reding , Jonathan Hunter , "Santosh Shilimkar" , Nishanth Menon , , , , , , , , , Subject: [PATCH 1/2] soc: bcm: bcm-pmb: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:11:12 +0800 Message-ID: <20210908071123.348-2-caihuoqing@baidu.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210908071123.348-1-caihuoqing@baidu.com> References: <20210908071123.348-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/bcm/bcm63xx/bcm-pmb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/bcm/bcm63xx/bcm-pmb.c b/drivers/soc/bcm/bcm63xx/bcm-pmb.c index 774465c119be..7bbe46ea5f94 100644 --- a/drivers/soc/bcm/bcm63xx/bcm-pmb.c +++ b/drivers/soc/bcm/bcm63xx/bcm-pmb.c @@ -276,7 +276,6 @@ static int bcm_pmb_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; const struct bcm_pmb_pd_data *table; const struct bcm_pmb_pd_data *e; - struct resource *res; struct bcm_pmb *pmb; int max_id; int err; @@ -287,8 +286,7 @@ static int bcm_pmb_probe(struct platform_device *pdev) pmb->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pmb->base = devm_ioremap_resource(&pdev->dev, res); + pmb->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pmb->base)) return PTR_ERR(pmb->base); -- 2.25.1