Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp28809058rwd; Wed, 5 Jul 2023 03:06:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGPx+wFx/hRHxj0EC7EOlsJsm/NFjoav6tfFxWAjMF44bcoGLSM+//5OiVIZB4vdvIRKn4k X-Received: by 2002:a17:902:b10b:b0:1b7:c166:f197 with SMTP id q11-20020a170902b10b00b001b7c166f197mr11040098plr.29.1688551562310; Wed, 05 Jul 2023 03:06:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688551562; cv=pass; d=google.com; s=arc-20160816; b=PLHjw/h11mZpHsSXaUUiI0Ze+0NQnQozrCC0QvbEqSMMf2cUsPdTubUeONKXtzwRm8 Wx/zyYwso8/iue6nXfICoXSUOuVQgUzfDlY1tdoABCu3ckgyD4TlLGkSzGm7YTDS/4U+ KUlDvPv9E3Xn9IaslkuhuFD3pLI5i3Zg98yGz1rxcE6XeoEPFzj8dkyQaBXLTIKIjk2M b3NbG6KmXVUDYXn+N5sSLFPofJ5i0TNSrGaJn2XjZutSRspFrE0+64sBPC0BQR6YiTYc nnHB/6WPLfL9ihixJdnA27YTWv0bAT0iwxWUV+HPOnGp9tA0JkIShzA5fipbgQjd4VZd sKGA== 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=GyPX6jX1plieiooev6Icr9crN/8MKZaa36xXoB1z/2A=; fh=FeT5G38czCxbFra8wh3CNM+BAh9ogjZ+EeOzujh3CE8=; b=zjixZMxyaSplVjLraBQGThtk4uaY4sH4nHZ1TJF5ymBdNcb3P0igtbLO5q/GB/Pzqb eC7T23RL1Lqd+3fAIlVMDfcIM6mg7xTNE4pzbOmIf67aKoASCQzlEr4n3U54lMoh/RBg hQUEEL+AkmXUSFXiezFqw+PISQSTcPTTb0rvN5dqsj5itnkZLq9ozKIyWl5LAqG1IR28 pknMGrzwxEKh0IqzH6jfZyK05lJcCF0/EF+26yy0vw0vczbXPwTXR/iCWOjbeChULY9o wehIBBlDtbPsER1rSDpEV7vJEWSzdEsfSC7QiwrdILJ9K2q9but1QKSHs10AMBmnVk+c 9TzA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="GLJOc/lI"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h2-20020a170902f54200b001b85a47d2b7si8953945plf.422.2023.07.05.03.05.48; Wed, 05 Jul 2023 03:06:02 -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="GLJOc/lI"; 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 S231977AbjGEJt0 (ORCPT + 99 others); Wed, 5 Jul 2023 05:49:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232132AbjGEJrb (ORCPT ); Wed, 5 Jul 2023 05:47:31 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2108.outbound.protection.outlook.com [40.107.255.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37CC319BD; Wed, 5 Jul 2023 02:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XPW5YYxjbZHx8XVhPdeORq3bPdE0SDIHxJzQeRc9/nTK/Q73Toe76oDMf9WucqSloOBbOBCWmp2aJC6I2ZWs79RNJnZT+Zmu3vJ/oyCaosPegNNtI2XdsHy5MEGpNm6XMzF+WaO6b4qcd9WsguRqQ1ehN4zG0Ojwm830EzUmFgHbGYr4HMoLMF32178rqEPAinb2kVWw0Wy+8QsDzQEIqsPRKY0XVtseEIKkvQreb+Rm1ooiFpBmSl5v9KAN0ww6mGj0vJJ/ZkO+R/Lqe1a/nJhgS2uWNZngqAT9ZXTi0GbX5YHte/DVkcwU3vWk0dFcmj0AlpcLJJn4BcvoO9q4Xw== 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=GyPX6jX1plieiooev6Icr9crN/8MKZaa36xXoB1z/2A=; b=mF1wlOtgfyYsNpiJdQrzdU59Kdjm4rSan9vDDZx8+qMPiVH4mcxViLMOfuPQg+HAjTMVwJw+Bb515osGQFYIDCbT6tp8+wOhMUi2ioiTgTPfD7qBYTOJDLRrmcVxqrhxcAX9Ajv2sRn+cmrCpShzLu7+wGJmm5KkpiARSqbLe5KBzmgjShWPu0I0m6n7T4qJBR8/bUi25lW0FRq0IB/sJjC52xuztQhfSqS6nhDZo5EILniOHOOpuCjtw6/1M4CfPy7h8d2pIH3RDfJ3oSq8FijmP6yJnyBVHeegbHVhwyHMaMaQBe9XmMr+P4RXxrGB36fQ378/5A0tY35DDf8UIg== 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=GyPX6jX1plieiooev6Icr9crN/8MKZaa36xXoB1z/2A=; b=GLJOc/lIAH5aFpVFyTMNwiinO4oyDk5DVCOCPztWRIGpWnWY/nipGbjFSMhTE+g8dRSHw8LrN+QiGZfq4eqi3lFDqiZsDKwOXyT5ihTOBu3p/XT/mTXt5Dv+MWb+TGMcmE+8waumYZDHXTZY8NipbNqbqFTMr1bv5YhIFnpa86PCpZ5M+/qps+8cBmQMTvsonEnrB0kLktqOJIGnDh71g0HGIPR+jsg3+Ef0epVf6dl5FvthPR7PHoSH+3oeWQYoJkMqC1TUUCEMEx8K1NkcO44VRpgm1KeNoJxbZh1V7mTH43dUXwhW89SCvBK6xqSAeRuWKN0D41TWrc7qIU3jZA== 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 TYUPR06MB6219.apcprd06.prod.outlook.com (2603:1096:400:352::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 09:47:17 +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; Wed, 5 Jul 2023 09:47:17 +0000 From: Yangtao Li To: Moritz Fischer , Wu Hao , Xu Yilun , Tom Rix Cc: Yangtao Li , linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] fpga: fpga-mgr: ts73xx: Convert to devm_platform_ioremap_resource() Date: Wed, 5 Jul 2023 17:46:54 +0800 Message-Id: <20230705094655.44753-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705094655.44753-1-frank.li@vivo.com> References: <20230705094655.44753-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR06CA0203.apcprd06.prod.outlook.com (2603:1096:4:1::35) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYUPR06MB6219:EE_ X-MS-Office365-Filtering-Correlation-Id: 852dc03b-bd77-4ec8-a314-08db7d3cd177 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CfrP4r44wY3HwWe5RdQCUKaT3HW6OiAHccdtau/WEI2CSRsm9ei1ZrLM2skU9RZvauyZI/5nmFhbOUODRxP5f365JMtAFjOvQYO9irGW2Pca+23SZvACNccqdwCQVxOdw6AUw26H8MJsYSoxdgx+64auonL9yKeJ6CG3xXJ1nft+5awfLBAt4RrEMHSxDNtxic/f/yyJiWN0p1NU/UTXtDuFGvvYncRaHqb5xvTtA2Uubc435epcdBWZrR+1GEc7/cuupD78imsrD+x7AvE24oV1bPntj7TxnDafDX2LVBz0+zMmD+C5OZYxb2jJa9DfxDoRSk4IHc7RO2hN6fp47CrzvmeoIdQy3JHFQ9SkGu/HivUHMQgpRRDbYYApBrchk59W9AQZQziLetfat46LBGJkOitB1huXEqWBx8xxzcgcpbSR1OP5EJEN+K26umnHAX5rytpO39+krtf8adsd2u7uONOu+3c/q7OEtaDe/wlqyMtO1cr8O8IeTTLsJWSayFNs+wXjI5J3b4vgHY9aHUxwCBzrJBhybezHqjYQ2p6SztnWYbM97L+2rSlIA4JIEB5MF0tMtDe44YDqjj9a2BXwoR6SOgkMn/UlnTTOUnFSheNoPbxt6fXNRY90/wVv 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)(366004)(346002)(376002)(396003)(136003)(39860400002)(451199021)(4326008)(316002)(86362001)(186003)(66556008)(66946007)(26005)(66476007)(6512007)(6506007)(1076003)(83380400001)(2616005)(4744005)(2906002)(6486002)(38100700002)(6666004)(52116002)(38350700002)(5660300002)(478600001)(8676002)(110136005)(8936002)(41300700001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?5juN/ZinfmldglX8IUqvKL1zH2BsBA2p67Hwg+3X9BbAd/HUBdTz1lKLI+Dw?= =?us-ascii?Q?+7J2SooOZdPwauNkgSTwphuHeIoI6TZHq4q+E6T3ZsPFLVnuTy0K2pHtO4nS?= =?us-ascii?Q?1NhZLMaQciuEunA9W4SR/ybvI5uMZpEvje9D14ARmS9Nk6DanozBksOAsK1Q?= =?us-ascii?Q?+DKUUi/L24SUuXha4AuePTka0HV7rRtoGdkqxPFMkjhCIOWKOZDD8KPAuxyv?= =?us-ascii?Q?mTqEpywAHAo7yGxk478ZRJp4LT/zmn8dBxBljtwQqJoZmagncZ/2vAN6PyTH?= =?us-ascii?Q?wWI14Q3RkcO//hDNwRTvZqGkqon+L4u5L5pnDtszghMWUR1k6B9+f+od0fla?= =?us-ascii?Q?MF6YnnT9cjjSl/Uue8ndp5VXRbVfAupoM4vbXX6R5BGgONypDj3MFr43wSPy?= =?us-ascii?Q?4vntqHqUBdxjJVJP4GANPdqYmbEWDU3clQmR1CgC8cOMmsckskaItwIIq6Qg?= =?us-ascii?Q?VDxrme5l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= =?us-ascii?Q?efbBjW2ErhGXNFfbDipyT9d8an9xLC7eEGEboXyptAlNO4equyaa1a60LCJg?= =?us-ascii?Q?PqUO5TwUblCKt5colf8GI/LHbOv/ZV0Qhr/n+cAEb3rPIe+Ag72g9nLnS1A3?= =?us-ascii?Q?wEiOu+IlAHd5bRrDwBlJJ78ymLlBw723U9PXsPUwPHOCGZW6kcjQz7Elo3Dr?= =?us-ascii?Q?acNFybOJeSnkEnXkU27gSR4e5PrmRDO9SVatnB2z?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 852dc03b-bd77-4ec8-a314-08db7d3cd177 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 09:47:17.0831 (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: tYW00Al25bdXWRcDUFIFM20XkXyIYR4iOCDBOKjU7zSY3LF1//zvTd/ldUlzunC5bJ186WVPzmAp7LU39W/q4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR06MB6219 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/fpga/ts73xx-fpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c index 8e6e9c840d9d..4e1d2a4d3df4 100644 --- a/drivers/fpga/ts73xx-fpga.c +++ b/drivers/fpga/ts73xx-fpga.c @@ -103,7 +103,6 @@ static int ts73xx_fpga_probe(struct platform_device *pdev) struct device *kdev = &pdev->dev; struct ts73xx_fpga_priv *priv; struct fpga_manager *mgr; - struct resource *res; priv = devm_kzalloc(kdev, sizeof(*priv), GFP_KERNEL); if (!priv) @@ -111,8 +110,7 @@ static int ts73xx_fpga_probe(struct platform_device *pdev) priv->dev = kdev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->io_base = devm_ioremap_resource(kdev, res); + priv->io_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->io_base)) return PTR_ERR(priv->io_base); -- 2.39.0