Message ID | 20230706092047.18599-2-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2431040vqx; Thu, 6 Jul 2023 02:40:20 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWxuj0ZpWNEUJ6mxkUw+UIzxSYtgk19Dlh6yBcteEMdoxsmYDvddG3+IE3yNIkm9x8h26E X-Received: by 2002:a05:6358:52ca:b0:135:3f00:b8de with SMTP id z10-20020a05635852ca00b001353f00b8demr1899010rwz.17.1688636419991; Thu, 06 Jul 2023 02:40:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688636419; cv=pass; d=google.com; s=arc-20160816; b=ppf747G+rdM29xqRbAo4rethEvfHIzo4N/BFD3pFnxv3TGNAUVOrfrWRrZaSod76Ng 4WZcVnrKuvNqQav9uVzCiqryaRuL0b0G1ObjAxrkau6jUQbIzUbMqirRnqMtUdLwdXYw azcYz/T7VN8xmIJwipIhQ8xuMhKjhhragnL0+5bDUn0znf4f/vrjaQSNI7EhPSysUo5u dP+APF+ysKIVHjxa49MuhZj1LsM+AtC2+p5siYAvYdzrZamNM9bqgBnIRJ0qqdY1tOKi AuADyZKJr9D9XofGrJx8IMFAiO4mPVsEQtCT3uKRe5D+nvBMc78Uk9g03PyelLFFhFZJ cLCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=voSi5+evNxjrc10na+M1f2wZWxGFN58S4FEVMOC0YGc=; fh=tJtg8TCjOoHRLRODvmN7NMe+Do1kI7S7MeUOohv/iM8=; b=ASzMeoTTAprNjM8i6UcAj7QXckJjovfu8uvezVckHg1h/ZKa1M4XsPA82hTAH149tu O4eMR3kjYLk0TctMh5ZRo6szNcBUUju+ePeAvq7FtaT6gLN2/cj5iHnWtwL59UUHfMM4 p3f0aGjJDIPfEX8h0w0Sx7E5bsuQ778tF6c3lqBy2gk0GfCwGk5uAvpPr3fvBLfsvJdX pZPxmXyTFffFoiMUlBfCy6puNv8icjoxpQG0TcCEB1qzco93xPT3IoSP4cMIOva8tITl XrHH3BzHpt/Cb+qGw+yUUeK5rz5dUmc8jb39rHHgI5TaavIzAEZ2am2Ff6EvcRW2GVxI tF7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=T3D9RJDR; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f14-20020a63554e000000b0053490e8df50si1035606pgm.223.2023.07.06.02.40.07; Thu, 06 Jul 2023 02:40:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=T3D9RJDR; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbjGFJWP (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 05:22:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjGFJWN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 05:22:13 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on20709.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::709]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C4D41FC6; Thu, 6 Jul 2023 02:21:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l+zbcWE7Jw5/x5ap2in+6qSvbAHHGDgKTSNca7FcFYfuUGQwULFRZ9V/6MUvuVdP8mHgAEe+BTmKXNJ39rjALOLdxD0Dti97o1Rli6n5HAV6KoFHFu8cSf17CgDfGJFxU/6uViUF1wHBEmtAfUMTUXknv+9l1qX33h6ctpGQN2paGXJFvfq0nNUKLXsoP9GVToxYBcGPHr+OWiG+2ugmWgJHwzCksUB/vGP5PEsz8m+2VzalyRdxUgr8KFpK3389fdodIuYud++GkhftaZluIXoaelKIlx4U0sD09t1A5O2xWw6KF+kdxDKBiFj8M3EB093AcH6mzlpPSbh5xcsqbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=voSi5+evNxjrc10na+M1f2wZWxGFN58S4FEVMOC0YGc=; b=HbWUuKH7S+cua/Hk7xwa01ED5k/l6AvmLjtPMdPEhfsQOjoBfhVnyOkm/2ZWnk/kwvl/3mFsG2B3fUcPSdK2i2zkcFNwkyine8rDIl+FNATrBfdU8sCmQq4SpMtLZbVVuZtjDZQgRCIf9uVccF94fDmdBoz+En5VE1OhoVP63Aex7tuV7pq0m/9s45tEdoRUDMaecfx946czg1Am29wBUYSkKMAf6iMq+sopS67j5JP0WtvDyepS0jruAPguGIZEEL3fRF3vmITgXfUfyftyZ2UoLYpotRG3xH7xzI/sUJG3EONCZEanaN4BplZMlPaKaB1b8mAc280ENuy4FIytxg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=voSi5+evNxjrc10na+M1f2wZWxGFN58S4FEVMOC0YGc=; b=T3D9RJDRujHnycuWCQSpJ1m2//tH9y4Pb959DA89nkrEb9xu3bXgR2OkszDHjne95W9JQpDiBxIxeBvlrS75xEHObSAb/w0W7O6wqVHkixQbtTTBNFfXIPUK5a+zEFqrfsGd0t3CK+T8dJHbLpaT4Kg/3ZkxoSMlIU3CT3xLFuktA+2h9ew2YyQkzBtfx1epYrppT+KXsJznHKWh6p3xe6xFlH+mtJjs5Z4Cwlo+tb4GHMhYStVAI/N8yfAnq/6mKnA66F9j7/SEpO72061D7aX9eNKDvJZ/5+L5aij8srET7xAh7hGL3x0+TZs36GBez7tc5NmWq8tAp9+k5UEz3w== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by TYZPR06MB6378.apcprd06.prod.outlook.com (2603:1096:400:419::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Thu, 6 Jul 2023 09:20:59 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Thu, 6 Jul 2023 09:20:59 +0000 From: Yangtao Li <frank.li@vivo.com> To: Marek Vasut <marek.vasut+renesas@gmail.com>, Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= <kw@linux.com>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] PCI: rcar-gen2: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 17:20:44 +0800 Message-Id: <20230706092047.18599-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706092047.18599-1-frank.li@vivo.com> References: <20230706092047.18599-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI1PR02CA0035.apcprd02.prod.outlook.com (2603:1096:4:1f6::8) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYZPR06MB6378:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c1d2327-244f-477a-4da3-08db7e024f9b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XFWUWxbLS92yE0nWmO3SwiqdNavlTrCD9+QZc8PdJC2ft/5Rdn7HeUSfcDOkoeO0FDa8N3qzpk6d74jXqRIzbkfCRo8GTuylslLkdn31Maa93ekBYlWcLpN+/dUCCPH49cfF+4yWmiic1b7hIP67QYF7wPaB979v3GWeGoCi3iJGXruYHUHgH9SrZ08TdIZG8guQCW+n6Gd5pO67xEAI8GZc7WIQzcGsfk6heOfBEn8Ss5BHGbvrWfEuGvgbIXPfiTEiGJ944IOq/sf3Ki77quiu+XMy2lWFjQmwpgiZmrpkm9KR2C/89Zdc2M87V5XtCfQ8U5S93hpnylfV7qWwwPQ8zDFiovNvQciirdxwcE1FRsjAcC0ZgRfyfpWI4SqqQEbOaaxPHwmA+p4v8DU49YManzCo6Fr1CXX+s5Sjudvd10+PZFrOMNK9V6tuGJKXjWH1KJ3mZKuiHMlKJRRG9faeJUsW2sZ5IisdKLlR9Vzx1BEaCTjOnbk2GMi/fJwgkvaew8fzsg+yvhA3kaI6fVSCi93a430lTQlGkUe4SAdtI8LdstC6RZoLah5Ux2a3LyotoC1o9gh5tY7Lx1x0YkGpBad1WRo4sh6UmzhSP93ybDLQNmVLP62aKAD8/AgI X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(366004)(376002)(396003)(39860400002)(451199021)(1076003)(6512007)(66556008)(4326008)(66476007)(8936002)(66946007)(316002)(36756003)(5660300002)(8676002)(478600001)(2906002)(4744005)(38350700002)(110136005)(26005)(86362001)(41300700001)(6666004)(6486002)(83380400001)(6506007)(186003)(38100700002)(52116002)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Mzx0tG/c7ov74Uv3zmhvhjqNiU64Ci06I10wyb0zUKiyVV8OWTUu7SaZRA7x3ypHR5YNnffHcXw34IDByVK7rq7SICGJn9Za0Q6P7zQA0GwvKTAGkx0g+bBTja3fPZU9l0DaTT14ow4gXD8Bw378ZDadyQh0eEi4GCtxPcm2UKNOeNECBQQX8qdlkcfgQzgXpnr/2p/Qcsj1vg0DMA7Uau51BOHA7uUn2ufX/+SshfPN1YrM/TWkfFy9+HCVvKPu8wm+I5MYI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qIVtJ+5iREurP/bQ2r3WhRtXWtlk+wygy3Di88t3sH8B/1oU4paJidJKUAO66sw6DeQcpCZDlp3m+nnBn1LwB7lBwwheNcPRSBTodgbhUx8hf1/XodIlNuwxnY6YlHhO5hTe/+qXTEdUC6et7dk/0FKDdaDRQfDwmtpdGIklOhukoRX/mrGrwKFOFaFT7aIWxmS2NQLga32NNhvYf4NCynm0iVNQCcEKlNuQv8CE0XgZ+gUKw7yup X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c1d2327-244f-477a-4da3-08db7e024f9b X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 09:20:59.5756 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U268Q9xyNSVp0fV2FAYhSg14WEUEexQmGJWRN/G4vGQ4bP0XzO2sbKZHvDQDjqaeJUiEmBT+yERq4Heegk/gpA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6378 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663622576856693?= X-GMAIL-MSGID: =?utf-8?q?1770663622576856693?= |
Series |
[1/4] PCI: imx6: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 9:20 a.m. UTC
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/pci/controller/pci-rcar-gen2.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Thu, Jul 6, 2023 at 11:27 AM Yangtao Li <frank.li@vivo.com> wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
diff --git a/drivers/pci/controller/pci-rcar-gen2.c b/drivers/pci/controller/pci-rcar-gen2.c index 839695791757..d29866485361 100644 --- a/drivers/pci/controller/pci-rcar-gen2.c +++ b/drivers/pci/controller/pci-rcar-gen2.c @@ -290,8 +290,7 @@ static int rcar_pci_probe(struct platform_device *pdev) priv = pci_host_bridge_priv(bridge); bridge->sysdata = priv; - cfg_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, cfg_res); + reg = devm_platform_get_and_ioremap_resource(pdev, 0, &cfg_res); if (IS_ERR(reg)) return PTR_ERR(reg);