Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp286369pxb; Wed, 8 Sep 2021 00:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJVJ3+Bi/WmFBBr5uGocFtilUkIpR3xPwhijZqORejG+bef9qs/b87o3JoAcCNOvG937fu X-Received: by 2002:a05:6402:152:: with SMTP id s18mr2476191edu.221.1631087466934; Wed, 08 Sep 2021 00:51:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631087466; cv=none; d=google.com; s=arc-20160816; b=nl+AkltUGBsi4EsNVCTBJzqLJdeNxUOjyTk4S2B96ORX7f1lIDKot15hV6CfSLuQCx 496NJLuoaqN3JNvLgo2Ks3k8qyRZUTroCS+7Ttp7VXAkrt82cQ6xA1YDW3BEcclDkmtf Lcki8R/xixQn8S7bDDVKn5FU/5dKlE4uE+ssSeexkUouQ/GVzv7Ne4xi7chWlvwFI5Lp ifPdtboiltDDoZgLc7rZtu8d6cn505zyneVYkN6NVASoMQO4DZRgjeqOI1Gs0Lt5AMrt QC2sE3HDsNPrNKY94mBXsRF180sUcgqPuB8HlObdeTY8wB3uUVZkKhptnUFMbSD/seWo hX6w== 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=tUQo2zSzvDiTMXO/P4+RywYGnnNjesec3XdotvqzD3Y=; b=0TS3aEKUzuwxLKbzFa85rFEy/dIpLBAdZN/6UblYuItgESqRZgO7LhtewOHLu/Lf26 jukA2OT3qVDjH2Ke5qoFvrGUJadaFM5NB7l1mKQywCjvAjXJrLrfz4l2qAqnpc5xRhxf /9S47SnNsJrEhSttkhsx9Jkc77bq1Fymnr7uWUJHpqvJKw8GVVw7+z2lpCahC36WyEt3 Fd2ma8Gmcs/nWNMOOagoDqxEQUah/PYbvjsn+sJrwp2xQOFlognj9jJGv0sN00wLU9NX wEeqr4ZsLcn3/VBGh+mEe5NkWJEdGXedmkweLvRXOV6G7VBheYuc2GbN8darto56h7ov OeEw== 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 jz6si1284080ejc.538.2021.09.08.00.50.42; Wed, 08 Sep 2021 00:51:06 -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 S1349357AbhIHHPk (ORCPT + 99 others); Wed, 8 Sep 2021 03:15:40 -0400 Received: from mx21.baidu.com ([220.181.3.85]:60734 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S234729AbhIHHPg (ORCPT ); Wed, 8 Sep 2021 03:15:36 -0400 Received: from BC-Mail-Ex21.internal.baidu.com (unknown [172.31.51.15]) by Forcepoint Email with ESMTPS id 1E89A8A9940C1556F1B4; Wed, 8 Sep 2021 15:14:25 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-Ex21.internal.baidu.com (172.31.51.15) 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:14:24 +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:14:24 +0800 From: Cai Huoqing To: CC: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Florian Fainelli , , , , , Subject: [PATCH 1/2] soc: bcm: bcm-pmb: Make use of the helper function devm_platform_ioremap_resource() Date: Wed, 8 Sep 2021 15:14:15 +0800 Message-ID: <20210908071417.494-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-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