From patchwork Thu Jul 6 09:20:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116593 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2431174vqx; Thu, 6 Jul 2023 02:40:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlG7t9Bxb9UUyzbuR8/FdHBAIwZoMN0rmA3TBo+Xu5Li/km6HUBWTEdlObNZp41LzxjmIjQR X-Received: by 2002:a05:6870:5487:b0:1b0:43b6:e131 with SMTP id f7-20020a056870548700b001b043b6e131mr2416140oan.5.1688636440704; Thu, 06 Jul 2023 02:40:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688636440; cv=pass; d=google.com; s=arc-20160816; b=QDZJNSkJ8PhURvMIOF49Hbtwt8oabXGhCWJsqIqJt19yr+37ThC+75N6G1gLCdfvFw 6ZT2sFCYJ/OyKhJwj6XVyHPJeVptPmrkp/6wbyDJRvA04uoLWF5yd5T5x4/0j1BRbs9k 9mU5LAIBKXLtBd2krBpfKxDfM1yPcHmeXjXXJCaDhrOl7ulsc6M4kNcu3jElZn4CmS3R qbbIOI6fzUIVc3DrSbJeYK5ADnpzoPQBs+jYJ+TcTe1olvyADX2B4u3Be84ioCuzWIuH kxfpFtWKl6qQWqO7exXTfeniHOpw9R/ePx4fNqIAYJ9CtL7GrMmrFhnHo+mVKzpfXfve vqAQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=skLC7hv4Gst696jMQBRjUS3Oc+EJCZA71mxKTSe+Pak=; fh=co5ozeu7r4kHsZzR4oz9vBm3n1q65YonDpaH3r1MCOI=; b=qRXF5LKSDqPCgrpqx46lU3sOPQTANl9utN9R2AVHBRdy7dI6A8gxGP2Hsh1oMw1aa3 9Q8DDvP+utbQcWL8tgkNODcMr4OMDMDyWMC3Yx5IsforYK9/it1diLxsIjb4nudXZzcH XmBQ0yfgvlP8f4fr62yjWS8ShdTaaXplZXASaVRSCQ8rFh2mRpRr1H0fANu+UEVyt0hI EGLc1L4GPQ1/B6sth75IIBeAdmyyUDjnKlso0tsCCuO8AUB/P643+QmLZ92vMc+GsEvd NFZK6n/vNDfLLTz9tu8+Yi6LAaAdOlguE4eJFeYqp7CJuLlsiPWROvxxLv+Q3pe4rwQz XZBA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=i7KguzwB; 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.28; Thu, 06 Jul 2023 02:40:40 -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=i7KguzwB; 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 S231367AbjGFJWA (ORCPT + 99 others); Thu, 6 Jul 2023 05:22:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjGFJV6 (ORCPT ); Thu, 6 Jul 2023 05:21:58 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2118.outbound.protection.outlook.com [40.107.117.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6E411FE2; Thu, 6 Jul 2023 02:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K+7e1AmlKnBG6H8dyxsDlYjq3pkr7xHbHc8om/x2sogM1gNoC6ly3aVihhwxicjOR6g7CLT6piIxGNOJ7cl6Tc9/V8DFrPPe6cHQHa24hXx5xKqA5kK2Y35NWeayrSQ+euwQw47JVXqc9cYFJpRKeJskcQjABQKpUiSYHciF+J74+oa8bLKljiPa6akuGyiKvJU0oacbMh7XSX6/jZwKXUBTDMDI3uudSShmolFvvoThWYNx6pPlv54Dnu32btL5TCwKO3g36UYOpYsDPQfXOHNKLhuVKVhkHAGPX5KXAySCtFXisd97/OA/HFshjhzIxSVZhj3ybPMPdkBlOQ6t5w== 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=skLC7hv4Gst696jMQBRjUS3Oc+EJCZA71mxKTSe+Pak=; b=msgMuYrP4UzSBdES3bt0BigZbwRVpYC/ti+SL9RFK+T8Ou5PnyDqQrunaueusB1HkU020pDuAT9dSbF3nvC0qq1Pv95qef6Mu/VxQm1wmfglK2tOXPzbxXRq/iUM+ts/acmfRPAWzr0kuSQAsEjgHe7ZAwyBU1AMzLqu9iHwAxTTsJiG1niTCS9nqYJZs5O3bz4ojuvfqai2ddrvzjd8XUvuHp2Kpj/qMWLc8t77EZIV9lYCx2tXJwnfZjIQwyTLxKYxkJqgX61onEbyhqXezOd8h9c6l2fjef3cyEziVxELRdzUTM7IHBBc13p535mEoLP+8XU+bZ/hqrOcSP4JBA== 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=skLC7hv4Gst696jMQBRjUS3Oc+EJCZA71mxKTSe+Pak=; b=i7KguzwBtKVuA4ZQ/L3Xixqa4IRhWbsSX9nNOxLKEjtCySaSVbIWjO7twm13as2frnG5AnHljYbbl5hloj3BC+x2SQoD7mAd63MnjJXyAtZH2i0q0Eo3ZgYXcwHQGYnuUF5L1McOSnyh/xsm8dUsET6L+zkVAxJYgeGhDLdIlKJHi6uxJ2Y48AJMz74bANoyKt4aV6Y22KkX4mKyO6Z2vCoREzRIiQMOBAtKaR3rAfgPno6HM9+u4Ge/Hi+WFih5SKdTD+dCm/yclP+tNysbxrk/tzTqzNhMV1QWeMMrsFI/5L+2DFPfKPcsPY0mIgWQLrBTcIrbRasIUwGJRp6faQ== 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:58 +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:57 +0000 From: Yangtao Li To: Richard Zhu , Lucas Stach , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team Cc: Yangtao Li , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] PCI: imx6: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 17:20:43 +0800 Message-Id: <20230706092047.18599-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: ebb1feee-9015-412d-e4e4-08db7e024e3c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AdOkFzt01qFRURLNz5aGy5YZSkodVAIiwDlOIZUYOaMJvBpuDMzNXYvj4gewQlxom5xEEYHfCVvnHc/4vNUNVZfyGbIGVR75gixvBCocFCVm3vJIYE4E9l6xk2q4fhhW+yxWl6MI8hTGn5NPnSiWxznS0e1XjPDbQHUczd4s6UEGys7XQZ/trNnRbfoPB0L9VVkjsIQDgFYKbp4resBGQLzpZvwNbsMqVbobxxQuCfwOKUPRYBUW0MPdbcI/pNXp8RCAjUtK04fgvWg4z+I7yCA/F5wT9TrZNthjFK1MP7tZ0Tv3DpKs6aiI3T7kvhBeTazkcFRaYT8pTT0sqgKztn4CG2gJ9dmL7mHKXIDPKiGc+41Y3Simxi2Iqtleu1Gy8bo+yd0HOWzDqdNZN+PfH33tZQ/xzHcFKlxO2LJ8g5JshQ8AxeJ6JHlcNeVf8koZ/IT7JFHsLkaR9YAGDNJekX2MzTPGynYlYPvAHOKBlqu8YfIaccq78YTOOtTvs/X67hnXobV1hMtIoWqw8a4WqpX+FfYd1mWF0EUhYKqNFmQZHomwKgdRbRVG1dR8Qbtxh4Kazk2y46f/ZoxkXeKeVageKLrlQu3GRRrDbHZ5DUcpmr3InNd8wTq91e1UQVqmXoR1EAtoQ+NOT8/kC7J20A== 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)(7416002)(1076003)(6512007)(66556008)(4326008)(66476007)(8936002)(66946007)(316002)(36756003)(5660300002)(8676002)(478600001)(2906002)(4744005)(38350700002)(110136005)(26005)(86362001)(41300700001)(6666004)(6486002)(83380400001)(6506007)(921005)(186003)(38100700002)(52116002)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: m7AZhAd5S+pVKKd7JtuC7oMyCpWAqLs03C8CEHf/IshbGsZKSd2QCabj0HPFvfcqc0wLb0tIvtqA0imgopKQe6ThorfvqUBFCVkFDUjMG0yf7ayQPfAaGavPMSnT/65ZGISmOLZr5krFPajnIoi7Qkhn1AFRsRUNQ46Gq0K+aSQcasbuIqaRAsl5O3Y2gsb5N5ppf2ZkcMR9i9knnGm7j/Txf93sjV7VhjcpzU3B6fiuzhL8YvwsQKJvFWt3GwWt+Vr3sQKh9CkgAfiqBc7RbrTwoo73cpQ78r6HWTMpWRdFV2+njHeEI743cJbAnfOS/MkGgaceGmvsTAcQRQAGU+/ssnaGciUbMkAGr0gvY5t03R/4KfTU3AQqG6tBuEhXFuRUb1178d9l7BO76mYwW6LpGA4Sn2boNNjdEttO8zKUcrKS+0Mo2PGQzMyQ7VuajzK3eAOb86Qz3vv+i3XeVFkVg1huwxNcYm5VOqH5JKmFbwiH7wjcM3ll2P+05GJUZeSiq89exAK8Soxdk7PQzvpJIcxC5EMmPzq0GvcBksQZWnX2PNvCNbhNnRk0ELpiOoWrE5KDx9qDeM3ZuzNZIokOpsxvu/t9sMQIEg2HvtK/z480V9ftUuDyrUhNc9yzQ75Vw6/HhpM4ShSq4l48+atflbM9gWrvzDH0w62CsTWxaVh35CnuQAHs52tzoRFAGqFsGB16AlhnlSXqghjMTqwRI1uGOGfagAIRaYdTLrSyRSJh7rp29O1bG97dUWQarT/iobTTmhRzNlNj9K7Ppg1eO+6YH5nEsKH3DyWNR6r0rP4GZ0M/1zyamqHcezDTnrmW/E7esFxkccCzQacEaFRPIMofmSRl8bwg1dXNbXVemdst64YrcCFuUkXOGvC5n4V2Z0uLOHFx76IvB6PiQ2yVC+K/3nuFC+Upk6TfZFcWuNFeaiatKc09McGM1jefuxjvaXBrjS0cq+H8zR8o8jmbsLqxM0ba1AiLzIgY6ODQtXUHyfcNr7VXSThsHRxfqRV6PgJuySI8Pw4W0VLUIrQpjYS7UlEO9DcQgFlp2hlF2tK+Dk3/HjRQ6Ig4ZAZZX8I3BKfAz7+1iv+R1Z+5PesyzME7xn7lC4omMv8fOqrGcIXWfwL16Js+XWZUs87mpKtbPYbcRxsvLfSHjZ3eYdfE7v82SJxfxNNMBpGQSQbg9YPI+iBpClCFzsyXEnQsplwpeJoIuEctf7icBkjxaXPoB3mHK/WzxxvhdmB2JtBlDdaTnk8SbOSa6MWljRDMFTIiwjh0yUBftey8+vNLR0AVRP0hvhxIJuJRIwiIpCFwov1H5OvwRdiIkBpZ106GvvTxlfQmLogn/KcL+09i9RDLGVIJVBDyjG/U6i9mhIxkCJQCRF0T+68RdP54SrQvqb5/xK/+K1oKar/LbkLy6LB80wMIK9nuN8yB0NsRQO0BFKoz+tDZT730g7nzgl7fmQFcmAbQja7iPeUQ8qiTGmy21dTELkyZ1NQfzrVYmKlQOT6F3DAcySSYkj98od8LIM4QO73BnH4Ms8agyxuAvyF/UNvNvD1N6bDq2xRmSyybMn2+Otwe1u0B0HsQtzeR X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebb1feee-9015-412d-e4e4-08db7e024e3c 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:57.3362 (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: dkbZpYlz0Zpx6sogvhcRYH3HWQfj8NxKSGXsq+d2R/sAlhRtSnofxHKOYSLOig86LlTQy7eyezlQD8HoAxqHEQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6378 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663644787703111?= X-GMAIL-MSGID: =?utf-8?q?1770663644787703111?= 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 --- drivers/pci/controller/dwc/pci-imx6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/dwc/pci-imx6.c b/drivers/pci/controller/dwc/pci-imx6.c index 27aaa2a6bf39..6bf7ad2f7b48 100644 --- a/drivers/pci/controller/dwc/pci-imx6.c +++ b/drivers/pci/controller/dwc/pci-imx6.c @@ -1282,8 +1282,7 @@ static int imx6_pcie_probe(struct platform_device *pdev) return PTR_ERR(imx6_pcie->phy_base); } - dbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pci->dbi_base = devm_ioremap_resource(dev, dbi_base); + pci->dbi_base = devm_platform_get_and_ioremap_resource(pdev, 0, &dbi_base); if (IS_ERR(pci->dbi_base)) return PTR_ERR(pci->dbi_base); From patchwork Thu Jul 6 09:20:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116592 Return-Path: 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 + 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 ); 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 To: Marek Vasut , Yoshihiro Shimoda , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas Cc: Yangtao Li , 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> 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+I5MYIeow9egs41957zvJ9FPmENlA9SBSSraReQcVqRkvWLZD9D8Tz/zv0c+By7jQC9RUNCOC3m0vcnCuixSjIMWhJhfipLyKeVMhRuN4jI3TcZj5/lVvFxk5ig0vMiH7VPDDR4lJP2yoQv1lt2gynIPfMwsb7BLe/thycQhFvClUe9KK0PULMiHKBPzV/MMyYxhpFL5jlk24Xcc9wlHdlTLQD6tlPcwsd/HyKF6aguIrqebdR44cK1DD/Aq9Esb8l7zdHkuER2KYGEpJsRERbM2Mg3XA9ed0EHRxaYfKZead5ItIHOAYbJwsVnMz4mofU4zGZiM5oRVB4krar26xQMyv5vnBES+f5HVid+z73wOt1I1d27DLUF0266dqSelyjawA5dSw3v67bWJ++BPXCXRu7biub7aaaJUWc8PspytNylTBX4a0crxzhXhb0U+zVbNrNzuxmGpHILfZHxOrPqaspul/snH6462zmhOvTKhSdTkzXlD2mTtZ5hCCxE+L67QRPIxeWvt7Kw/H6PibI4dY9Eli/zmX4dcPgUWbz5Hq+K8iD3qLW+3Cbc3sjH9bYrZHm97EEKJBQVKauaU5whDewMEmVtuAqHceBMXe7R+mOvlP6kh43uLCwyDZgkEWbu+v4Bh1+dTSoHT3+D4Dl00PJb3gTfaaD+hnXUKaz4QkbJu0xK7lnjCFxe3sG1tYEJXASCHxu5ipHeLNW+uZUz7Zf3q2MsLWR2NEU+tKSVSPYO+5w1JORa2b8PQ4hgwHiaMS9DEbzuGoCXHz3CXAaCNlSgJjeuWw52vQa8YVffQ1h4AP4PZg4lMLSDrm28Pt5tySaNrykpyO6QcYob+F751MwCBcGMcV0yegJOkUcgdE+eilj/pZhR4pj4IU6IGUSvx94yC/ewl3hIi07ACghAIBO9iXePqIt5QGU8PfDjbOyCoMCvppw1+qA0RArDBdnxEROO1ugdpLR9lgE8xl1KrZqKgSzRuNzI/HIl4RKbhZ1d8wDW1tX+muLnJVg+qYtu/7wOufvcevJ+10iGGPqIptnVKfIlTW38KjPJQ1HiLYkx8HhGPlkjpIJsvxpB6DShh9yDXqIVtJ+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: 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?= 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 Reviewed-by: Geert Uytterhoeven --- drivers/pci/controller/pci-rcar-gen2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); From patchwork Thu Jul 6 09:20:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116584 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2426663vqx; Thu, 6 Jul 2023 02:30:58 -0700 (PDT) X-Google-Smtp-Source: APBJJlGfY+LrWiUY0tcEFjsHZE+vfO188L7xBkfUx7Hz8QDKZvkkhw5g1i1E3TmeEWdo4k4evnBz X-Received: by 2002:a05:6358:52c8:b0:134:cac4:b88f with SMTP id z8-20020a05635852c800b00134cac4b88fmr1646645rwz.16.1688635858411; Thu, 06 Jul 2023 02:30:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688635858; cv=pass; d=google.com; s=arc-20160816; b=DT+VE6uWVtkusSLZE9wkSbu94oCFNcKYR5wTNnv2fFoQkpf53Hi7Tg36M5WtIC87F3 eY5IXYcuuCbKJQEyWPu4vNvz+dcUaKxQ3WnPYtHh7IwHRJgwWLZr58M81UmQ3NT4j3VJ vbVHgoA0cCkcF+mBjQBnef61i1yd2WP4eg/tqFIAUewdyUvnG37ffuxUVMMLEhDW/ScS 1cq9Z5oGy6q/7r8iR5lCgFcvkU6pJh82dbj1/9OBIYwV9yhA5QnYRO52wBQ4219y2Ibt i4wk6Zpq3urMNqwJq0wqcwPRcAunbNDyaLE41oJm0teVClIKMiuAeRHCH8/4U9pW8cfQ dNRw== 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=2OX2vGAet7PpI5x6PD205cmO+y21lSocNiCDk59Mgp4=; fh=PqAAl+somsTX7X23AipoAHBADIOZcmtBC2nR6Dvt5ss=; b=kpmeIuZEPuVaNWIMkTJsj6qAhE+UZO59bRemxkLU0YJYEVQkPNB6v3g9nGuPl0DBhM VBGyYprc4RNtgCJ+vUqZLVcDCufHKGNQlvmevxD8rTZmsbtXhZp5pk9K6zP8Iz7Pbty8 ZKRpgqB3VIwJzjyfxuSAtkOxCbk39/bRKXha+2fckn7LkhONhofTIG38na95AbJHaYOf YrSNODXOfsObaY2IJGYqhdegJze5D7Q8d86pNhItPJS3qvebkW+Brf/Z8IrW47xN5rg3 7D7GC3a+7MEQkP6NYhYwpK/4Hwxml6Vj21wjtudoGeSatfTsvb04Qc81X+cc3CHjAtpQ NyKg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=n+P3xP23; 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 j192-20020a638bc9000000b0053b8c964128si1077910pge.708.2023.07.06.02.30.43; Thu, 06 Jul 2023 02:30:58 -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=n+P3xP23; 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 S231972AbjGFJWY (ORCPT + 99 others); Thu, 6 Jul 2023 05:22:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbjGFJWT (ORCPT ); Thu, 6 Jul 2023 05:22:19 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2118.outbound.protection.outlook.com [40.107.117.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 90B4C1FDB; Thu, 6 Jul 2023 02:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mtGEtoyHaiS4JgftmQEqOMwQDsRca3rX8TdSaFMiX3XwuYGIBUkjGZ9RzIxEjLBxDImvsgU1uGQN8kW87LiBTieJqv5nk5rwQaoBm28AY2gr/ru821ZzFpR2ck7Nc7He8kPF2G+fNdcjjSIzmF/yQB/jretputMtbX6QPbaXkVBOqGg/G4JBjbKR2BMCkhQ8/7qQHaScax+1SLsbU+DY4y73MWN8TGh/tfFNMy7Sk4nPVv1fv+6rol847MaS2A62fNpiIMTkPUBlh00XDcqhGvTnj0aCRnIAKLPoE/B9zkwOCk7yG7g2M/OwuxN/9uPhpC/XtIhJ+KbEa6+D3IfwdQ== 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=2OX2vGAet7PpI5x6PD205cmO+y21lSocNiCDk59Mgp4=; b=LS7UJd/nmQWCtd6gynQEZYSfKlmtXoJZk1OG6JW5kqiGLyJhzS1tvkPBOrdxPrtpve62TD7Nml9+BCejb/JGpWipUt89tH1j9q8mob4N8ZTPLfwqBRNVnc7v6fUL8+jY6qwRKFkOaJfbbMAAVau6Aj6q0sIavXC/8KoCZ22edyccdwmcGQsQDxGnTpbq/juaiMngGr89g1loHKqsgrBy4cyuXGrTOEtBKyNcK3Ebp7PNtA7D1imOCUedkqNCzMmEZx2cowO+73zpCN/SrZ7xgJ1DxgI19xbFVhr9uqM4wTxYR5de1TsC3Df8l0JTjsEhEwPMWDE6Le2HoAFq/xyY9g== 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=2OX2vGAet7PpI5x6PD205cmO+y21lSocNiCDk59Mgp4=; b=n+P3xP230pcpfUmwXX++qgn0EqA3OLcmOK0mCGYXh0jbGi4TGrElmFeshGuUL4zcWKgTWSd7UZWxxirf7ysFsJXbOe2ANAG8Pob1gB60vvV6I3W1BqSkEsVYSDK4clrXVL6QXU+vz7zk2ieQUSMYBSqQWJDq+mtQfwEdEf+tZvVDCnvM5dJfqyjZtio/BU6PL9s6kAZ7zfIhrPJaekTCb9xLLIGqZjD09xiDL6Ev4ervLFMgxnJyMhDrK3lKGy8vKZuqepm18/hsrIPoLOGeB4Kcek4g6ZDo3vTOkMrkmQHL7OnfzTKxKphstsGOOSHjwalqt8OEFzLpRwvEbrQYMw== 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:21:02 +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:21:01 +0000 From: Yangtao Li To: Linus Walleij , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas Cc: Yangtao Li , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] PCI: v3-semi: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 17:20:45 +0800 Message-Id: <20230706092047.18599-3-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> 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: dab93279-957e-48db-03c8-08db7e025108 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: b7GPygDXM3/poUomjcxR1sPxHI3u4yLysArMr04G/Z/wTjPcJXk9iD8+oeVKkaT2Z2Naqj3gWl+eO6RcR2fifsEzvfjhFKWJyp4QniQqX3BbH1ebwx8AebilIraoDpqBIHJojAvk95ZAvL4nKVQtJPyV1i9IVH78iM9eb3kQnIc5xl12q4FCnkJPCxnH9VHKwm5ZI8HPUWITsuzfpPVNTD1ljeD1BCM5CvQ+DAbpJ2Q+gLZlfKfi7X+ujnmEa87JagDqC+Vn8OqlhKIuf2mh3R1+Acba91iSmdDPPHvduJZoVCzDorQRjbkN+Z7wYpzI+EwgxS1xQyH5MSr1ypKkc+EsDMAp4ev2+uojilJo7BZUc8QFQtNQZqXHfX/Z3GiJZb3TMl2QUZbVHf7NyNL9/iBLEtrlnbvKI5gqO2LxxFcIKKPEwjaU1Qt5eRoKxJZBP0PxIuSBVYYL/CUk1+lWJdwraNzsSaQU52/OzR9ybSaSgcWsc9teGqAYP8JWjH89fUKJttbl9oJRYJ39gZBvSHTnTVWUCoZ3Z1cLG6OHxaEedMKIlImVp2zQTqiyqHRgiTVoXxBC6BzvtyhHH0XGlejak5CaD+HfQ9hwVoTtGrM7d7BJ34t4hd33fgWPzS4s 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)(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: Cmdb1WkQjGE1CVfDihwVEu55A5Vz1joLpRA/YBYgENdRX5lwNQ+UQuD+Ulz8kjqH9z1ZgEVNctV6wlSn3Npu6OTTWo4ll97VLKi1MWlMAWJS8bcA6TrOOMpIP9/jo9kazIaidp1izEBB1qDQzDBXnMeL2b+V0LODjs6NkiQ7fG0kYtjCEoykzGZ2LkjRCZ6MQ3ifayCqsqCp5JtSs6SUyuofe0kekU/WBplE0dDEg02042T7M/PXGwg8EugDdUix0D/gNBa62U3wKSAFyD0mFZjc+X2+srplYPPlMltag1MceE1r2crRGxXjSlP8l+Y8z8mMiV5PG2eH7nZr2J0RFzASvke8CW8Jk9dcVjrE8HKzNN9mgPuwHulEXXQUdNZe4p6PQPVwSk34LWvP1kf2cMwBAiE1gwMwHHsyLY6+pd6AAtQIyEBAzpH43e3CkXeGfmr6I0FmaJyGjK07/Cj5NrOSRhY87Um91JOI7BYEVZRrhEe+Y5vbZkq7SJDVkUAWSYy0YQjiz/+gjTW8Nnl0xB605vU1KPCmzQeaVSuRRMv+SqF5AYSJYCbcEwioqHkUJoWMeeoLLRo6l6N2//Th4+X65V7lySKfF7Lnr9zrFf3+x0kL22JWFyd57jPmjcVRhC0fKh2Ae3+WxmavDwtf47bUVMkbmZL7RC58IE6yrmuFlvc3zJf0MutsXGlThbkbQy0boErcDVLLc+oZf0YowqrpKbOY+N+QPNbzQvLcjgwnNi/ssH3cT1rOUYcXhgoZKq3qy12+cWJOjGGHfzUqrnFA+KlhjvDmP8K1+tXhzA54eMMRrAPsMW4RC9Mk6c+/SdDVS8nX+5Ts+CJjAz6+Y6Q1BG6CWWayQZEb2ANhHTf7EuV48D/rEjcbvf+hvm/i/xSQLT/zr5CRZLQyG3HT35WRyDn92DX5dfROhJjW4fX2ZWN9S3KAtThvRkm82QJfdiMORLb9qJYxwPYdnU+zRkzKpkQPWn9M0yym6MK+tm86fUUJHF49YV5YKpacdCkeD6P49CD8wH0RoVMnLpK7r0VgvjjFHrsglqshI2zjp2KJch3Y9ILnZW8NkU/G6iMq6hC/Ky8GLE9jkJRJuAdKUvuQb6h8cFjwZT4VRpcdaEzc808z9CtcuSFJ0rydk+Ao9W89Xpq3u+vReejnfakLmntXrzGEZsWgsiqPwP+PmezN7SZU3Fq8h7svy18FeyKwlhUEpUJHudYG5mEe7yRZDBvrU2yiy8AR75bVxQAREVwToLgts6B6RsiFwPVbdIiVl9N52MfAgWTdbBN1ypA1yp5JH2AN2K6xO5ORYVIQ6s7pkh2z4Hw7ouaz9qHAMcrOG7pb32H4yVgJ/V43qk6aZYavEyGeL3g2ctGqJ8dBYvc17pEtpZkKB8fQP1g+QGl1QcZvBjpH3NGC4vsru/WNlmpDniM9iJ0a1ck0K7aGHSZfXd9m6gmJk5L81MpHuuyLzgowGz9XHgjPVoVUKhOvdKg8isny7zEmtz4VYJhdleE4WsXQgvTFQB53rhI+Wb4DFffFZ3fBBGO8oFOifKKiHpAO4as6OVUEdna9zScN5xIQCLHCudARt3h8E0XKwmXT X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: dab93279-957e-48db-03c8-08db7e025108 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:21:01.8952 (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: CFx+TzGHwVrcp0G/WhqiACMOuOoo+yM1niQTxfv7W8BufYACNvPVKc9+wjRLlHkQ/unr4FveTm3th+lOeXJNWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6378 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663033520737033?= X-GMAIL-MSGID: =?utf-8?q?1770663033520737033?= 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 Reviewed-by: Linus Walleij Acked-by: Yangtao Li --- drivers/pci/controller/pci-v3-semi.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/pci/controller/pci-v3-semi.c b/drivers/pci/controller/pci-v3-semi.c index ca44b0c83d1b..0f993328dba2 100644 --- a/drivers/pci/controller/pci-v3-semi.c +++ b/drivers/pci/controller/pci-v3-semi.c @@ -736,8 +736,7 @@ static int v3_pci_probe(struct platform_device *pdev) return ret; } - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); - v3->base = devm_ioremap_resource(dev, regs); + v3->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(v3->base)) return PTR_ERR(v3->base); /* @@ -750,15 +749,14 @@ static int v3_pci_probe(struct platform_device *pdev) readl(v3->base + V3_LB_IO_BASE), regs); /* Configuration space is 16MB directly mapped */ - regs = platform_get_resource(pdev, IORESOURCE_MEM, 1); + v3->config_base = devm_platform_get_and_ioremap_resource(pdev, 1, &res); + if (IS_ERR(v3->config_base)) + return PTR_ERR(v3->config_base); if (resource_size(regs) != SZ_16M) { dev_err(dev, "config mem is not 16MB!\n"); return -EINVAL; } v3->config_mem = regs->start; - v3->config_base = devm_ioremap_resource(dev, regs); - if (IS_ERR(v3->config_base)) - return PTR_ERR(v3->config_base); /* Get and request error IRQ resource */ irq = platform_get_irq(pdev, 0); From patchwork Thu Jul 6 09:20:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116591 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2430814vqx; Thu, 6 Jul 2023 02:39:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlE1I6H/973/RBiKIYEQ5Sjyh+FTK86MS4f5fJCSmrPgaS8SpJ/xBwVBXx1itnlWtOCeDWLI X-Received: by 2002:aa7:8891:0:b0:681:3ed2:b493 with SMTP id z17-20020aa78891000000b006813ed2b493mr1114483pfe.26.1688636394794; Thu, 06 Jul 2023 02:39:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688636394; cv=pass; d=google.com; s=arc-20160816; b=srgB5+fCiIxgyFkbCI8w8aepyzhvIwIwFeb9XNuyoswI9aOL7pZ3EW3dZDuxJuHL5+ guqSPvqx9Gxb+qRotoR9KpsVlQsTbzfg/kvsTlZm/JFXkPBCKaqXE1a11N2KLduO6y6M eV+mw5T90KMz6wgdRagpITDhuz6unWA8thTW8KnnD4fhtZL3iQKxyBJ7Vp4Nj/0zK/LD Z/PJJyVIS7zCmxvLLn3U2UsBXkmShDDs/A0dYxTpcktjRVSuBFekGMx5O5K8Ku8sxJ50 qO50oyxRMVLtBbtGxbLYzDHQ7r+mnaRmvABrH59V64MyicXTwAqVpjLWfV2qWuC+UkOk zlAg== 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=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; fh=lYMxi3UNKwatN04rc7WwaDxwCtxLKrQbzKnIkOSg6X8=; b=RBmCUAnzJM+j2bGdvgBng8kADZbyo5Y3cIcQlbugfRCmJHX7XSG8qgTa3+gIdEYuBa sUEvWzTIuM7lh3UMag/Y9oLQBK13gooJZJ1+ueMGICgXmu1jnrcsAVDkUKik0GLx4yaV FprsOmpzQzQkdY/kD5j+xvl82HJ+0YF4lHyemxAA+IkBg4hYR/9Zp7Di8+EnZ0mEJAZm IuZj1HcfIbsLvDdHvRvOInSdZG6ZZ98hIWaVF+fp6ZQgsQDl0Qk0Uw5qKOoH8vztV3jc rgeusBxH/NYVHnK4uxOvUJP1NCjqheckWf1H7nzA+WFC6q6T4qI5BluHOBAUECP65+IF 1stA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nI2guFCV; 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 fj10-20020a056a003a0a00b0067ff1a1ccbdsi1111558pfb.91.2023.07.06.02.39.39; Thu, 06 Jul 2023 02:39:54 -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=nI2guFCV; 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 S230207AbjGFJWj (ORCPT + 99 others); Thu, 6 Jul 2023 05:22:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbjGFJWi (ORCPT ); Thu, 6 Jul 2023 05:22:38 -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 CD15E1BE9; Thu, 6 Jul 2023 02:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aHurPOykK4cuq2UGfuN/i8fdcyFm0e/Xp6Py7lCIHPplG6ZfEOW8pM9a67o+3/nssk13qLPilJ9f0Q+uyazDx6/+bu5MY2+8b18lAYn6c+kRJ4bG4CPwnnUrsVMhpassHt+jbAi8DTkxoeiGPDaTUxePT2P+kt2QLDbUzOBUMNtoqF3wvUYmScRAtX/7otqqNvJdOfXFl2K5535I++R2Gi752gj73xRdZYkxkdUJFS0j2FUozZ/a/v0tzA5sY8f1hlIPjKAmEaBAikkvITABKlZlodL2eP9ttb4uNFLbwj7jfNLNIHi8RgwgEGaTjqj8GHPraKHbsNw4EsajCm0efg== 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=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; b=fJovWI5JwgP4sHuOjZasZ1s5j1GXRc26oRQeQbFe8zbqndzbDTD9LFEjJPpbtfIWiyqFqGUqN2hMr8JHpOFghD0xcJZrHyVy/xRN+zcchD0zVeay/jVeyckyGxSjOtqd8kR3HVVWfEz1L/aD5rA0KILtQlBCUPBEp7DE7JzJ/05Ez5vh+zpAOLRPrYwf8jlExsViOUDJjiFsHQsLaGIYfMokwySx4EUpcYpgysypXvFlb6KLIOCeLwc9GPcldMR6xfUWRmI+VmxFsQS65oK7D6lmHT1a3RaT2wac8eWVt+5txRqjAwWFJp//OPuVmrmHhieM0CKTA+xz0NN+OvnCiA== 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=UUIr4//1Z0vRI5H54BK4dx7TDfrFJieljwl7yeBA7Ws=; b=nI2guFCV7bzzplMcK98sKqc9wNaBwoa8rv/qhC8OXzZbOpwGV0XH6WItMSPH4ssqeMOPUlHaeAD1uK7yObeIgT90phy4b3rf5M/tTPSJFaO9MWx8OC8PWWFcsjF0akLte+VAN2KV/XffX3qQZrVZkYHNlz+Ai69kTc2/AZRReGCKy4R6oKRu5IBVYX2OkRt9GBjXXmJd6V9YNpeN8bcpjdgvSph16bo8Pn0YmlSvqXkuF8vSyhf9SSrGRV0Hebs7uxt3vyBiuk+pO8tbeC4verIkpocxRbinG05Y90mEyT3bPU+e5wqd4lIgFgZtONddr73lYt457af/aY0njN2Amw== 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:21:05 +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:21:05 +0000 From: Yangtao Li To: Toan Le , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy=C5=84?= =?utf-8?q?ski?= , Rob Herring , Bjorn Helgaas Cc: Yangtao Li , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] PCI: xgene-msi: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 17:20:46 +0800 Message-Id: <20230706092047.18599-4-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> 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: a7ba6d09-f2b5-483d-c38c-08db7e0252e4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KHYIIh+iva2TON+M05vbQYYwoUs1M0QDJmvIOoypIn0VE7j5p6z0TkU91Mnq/KkH/clpJsTGxPaowWx8uokT/RQd4BiiH5tjp9pO11cuDTv0euRKnObF4s8q0nxvxm2lPrOiuhjybQNPgAh/p9wnD4knxPwCjWFEq8NG6+6J5QIjk1skx+12UnHLOm3cufvmBCH6Pga1zKQCrCKGK+Tl2xpZ9nhKooPk8BpjAvakpvYc4nQsbvokjHYP+kiGwUW0rvOjMo0qtcenS7Co/ld7mIG+uX37OldT4yXBilo4+NGB8zNG4H+kDl6X0tgg7BoLaZUDzw1ndcyGoO4ILGoXOvuaJZ/7u/v03NazzLPue3Fmj5QM3hV1FYs6SzB62HyVjtkGhcmU946/FkV6fOAwxtJvMMghuStw4H7ifDM/F+0/ez0mJ5MBlUcO2VUvklTmLXYq1dUR7oL8hHmFbKabhq19uJbJOMOzO9LbzkgT+/XMcvcpRGiwXDmauUDr0vG7la+SarkARpDoFjEz7TJzSrTMx4X+AUt6Mg8/yvk/ikStua+yKYB7br9gGxxiHfw7/dM7LgzO43+Rw8m1RHW3B37xC9LlEhjo/KRWL01t09gRu11Bj9McMGqjSRNIpTPo 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: wu8BNovDD0bpbEuNFXNqvrmVMGftccpikvJWvocwdFwGOKjD534Vnf5nZd6CglsMY29ScxwLYBKsg8zxrClqDMrR9wkEEoA/PwHBmXihKVTu5zBTvedQYhSeY5Xh5oUyTVJ+7rKnrIq0GbPVrv7P4/ye4uJ/61D9tf776bqoZe6/dr++t5ETm3h7Uav2AZ2m7AXvC/h9kRrwvMuOzz7g2Xscq0ngeFAs/f5QOk5mF52IDht+S90ojpXWR8Rv3TkhsupUR30WNqwtTrlieB5V9N1gIcD8FRB414/KO7gMHnvHXYrL7z+XpeMaEROqONWJXvh1bbZgBnagCLFl/GlTSIwuvqsgFur0ucfQNTqv1c8WjNpW+RBvfTY7XBmLHj12gMrRUBP/i5QIVCoZGV6ReJRrrO1Jf+HwRyAue3LYk2eBGhalDU1f4sqZ0kgYft7g752QJGby6Ig9ZD55HSGRIEzLhiaNAs4qSKPLEhS5MEE8za4EHyRmomA9mBAGsT7S/mbsaSLV8niQroiT05D4JsSGPv+zRynYzf8cZfJsUR8+e/psL1j1VF5tFoK9V3D3yDUN7ufl08qR1jrV37OtAqFqbTqQGwB9L6H5GImqh/y0QBeeFkE2Rd65mW5PW5DfIkuwtNamgrRjFIqccK/qX3rMN78bcbc++g29bOY16xnp3yK+pBan4fGI9wUAF0u8kjJTSHYE8iPTveHzE6gY4nN2rHJ4wqk33HMP73chOD1B2TfxoE4quWVx2hKY3It1UCrQG1cu8yTq2n9YOiaAMoFSAuaALIvqzkc+rXyCRw6Jh7qIOOC4Z4ZMbjGnDle15u7SxZk31RjQmO0ZDSms7cBU927IZ8jTX7j5oa5P6pjbE321bQ5XMP1SbCMxZY4E4FCt9517pQSiSehryWTgvXDKKBScKi/YVpwuOak+YKg+rBDSmzVKCEcb1rB7DVdoGm3+XCCuF3uHsOE9fIUFtrAPDh6nJJGAKSadVyDY1rv5p7/NjbY92Co7w3Ni59Fft0RCIKcAAXihjcgnVs+vCKduEYG9p8qmM94ueD9pjT+uBtUGD2oVsoT0Sw+j8oAG4lYGWWneC/jBF9Hrz2iHllgLvdzrYE9RGG14ZoHbdiW7VfgHeLO6ZQius83qIe+iLKqLgwckAsA0C0Q+O4SfaELAspP2gpZVJZCFQIA5CwXAFENPTY6Faau+8Kd5rQ+6YWygMAYq7vQwNZq44EAAWUY+3a+gw4p4M/UDzk2eyGYt7V8XOesDHAO+LMz2zIu3KtWDjBEiuJeSyZJgyh3L/5FxJql4LZdhOLOPnDAMCJwIFaDZW+C9SdjygjcDVvtVu6nv3BNieE8x2i/W1yiPtH8Fi7WcnADm6ujAscXKxTDFUvtTcI7tzeizeK00E7j05fsFY9O6uaoyV8wjeXaK5YU3au0oYua4hU++NWBgiculbCFr3JgfjxEH3KK4YFfikG6Vz6UV6He6y36o3MGXTBG1s2E+UlrWoJ8coNTFk3HjtY4g8+4ZBOPfQyzqbhFk2g+hw1OG+TqDR0gygWFyzTnj/6BM6jXLT80pDvIY1o2tDwIyJRk2RVkEz62P07N5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7ba6d09-f2b5-483d-c38c-08db7e0252e4 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:21:05.1516 (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: x9Nl4Y6X2TllQud1S9B/edu6C5y9vIwPwbGvuB33RMeOSM/UENQNGWZHRREp5gTRkFGl+YKfBMgi+2+08inajg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770663595996629897?= X-GMAIL-MSGID: =?utf-8?q?1770663595996629897?= 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 --- drivers/pci/controller/pci-xgene-msi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pci/controller/pci-xgene-msi.c b/drivers/pci/controller/pci-xgene-msi.c index d7987b281f79..d7e09f264d52 100644 --- a/drivers/pci/controller/pci-xgene-msi.c +++ b/drivers/pci/controller/pci-xgene-msi.c @@ -443,8 +443,7 @@ static int xgene_msi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, xgene_msi); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - xgene_msi->msi_regs = devm_ioremap_resource(&pdev->dev, res); + xgene_msi->msi_regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(xgene_msi->msi_regs)) { rc = PTR_ERR(xgene_msi->msi_regs); goto error;