From patchwork Fri Jul 7 02:42:22 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: 116913 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2987879vqx; Thu, 6 Jul 2023 20:16:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzmwmntPJXoCrDSHm1HNhIfKZhXptRjd9CfbcBYOssvYKrKGzxmiW7egNn7QgPxH82o2mZ X-Received: by 2002:a05:620a:3722:b0:75e:d11d:51ab with SMTP id de34-20020a05620a372200b0075ed11d51abmr4136576qkb.9.1688699780595; Thu, 06 Jul 2023 20:16:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688699780; cv=pass; d=google.com; s=arc-20160816; b=ng9nXjrAluRURE0zBoKW6Q88OHCB3pun3n1B3ePK3z/IkjiEmksoC0uxaVV9V4PypU vhq+SaACWmLrsFjSqVksHWTa4F9VX3OnHNj8Hgln7vo212g1k+XPHMiPReoQQoBUlY2f I2aTMxw+Ve1BH9mGXKjodsDpdvPF9CZ5KpVr+12vRZoXOfgtpdH7fxFEDi2P4MYIMbsW 4UAnjPDadmDK8zdYNn+7pUsJ7galmYRq4I/TGU2IK7yX/TadW5aLViQh/8lQ6DBUBMMx lh7wPEKvhm3dTTqPS+6a2UlI3khK3VCN/T50yLs7MYBKqRmjkNQTr2Mb19mWvPwXLqus bzSg== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; fh=u6gw0YMxMhKwGjDxQAZFKkcod2Afs+iHjgVzYP+sjyA=; b=GoafE4rv0xGNnZutWSClLA1dQb4jdznNN7oGChkA93LbZvRzJDyiTFZ0GoSHCMGit5 9xhETlxjJZd1IjHALUfRFxS74S7N9kQ1wQb9DAfvT/W7ErSo4LS1Pe/7Ss+Pz8vk+aVF IsI/noR3nwGCm0CP/EK/9T8x4wgdjWBgWhmy3T5r+TAZFZ/XWn0dqodSCGcdKKSBm3By bXOwJDL++Yow7EFG5pEH2mCEduunrfWSyUQCfugsgaIU7BWPbKqGQWJCZ1ghPHElrijm qV/vFQ91Sx0nXaDYBm4k9udQHkBUBAA0sl2/HFVvQ/AZfCc/WF2WZKHZhgoBAC3rTTPE 3DUw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=lVTG9UvH; 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 j7-20020a634a47000000b00553939d6a6dsi2662808pgl.44.2023.07.06.20.16.07; Thu, 06 Jul 2023 20:16:20 -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=lVTG9UvH; 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 S232443AbjGGCmr (ORCPT + 99 others); Thu, 6 Jul 2023 22:42:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231938AbjGGCmp (ORCPT ); Thu, 6 Jul 2023 22:42:45 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2130.outbound.protection.outlook.com [40.107.255.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB64119A6 for ; Thu, 6 Jul 2023 19:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ikEr4gXWHJtdXcTLbJsndqQ64dPDG3UKh3JJ9R2kjpL6tKEVan5diNTi0wociz2DAvkr1incrHZM6zHUGD4ZLDo8MN6mSkEr0fU1dFT2Z3+Xq8jrh7OBYh77mAwOvUlo3FAI5qGfR0p8cOkUkdvjN380bi9bxc356+iS01RDwq9DDu2bgqinE5/iqzZotUIv4Ids7IpP67qjhBinpjQYEchOMoA3epJfGiLYvpsvHB+0g3H62T0TBAD1tM5Iph2g3K6YXHlWMy4NYU0CUL+2qy6iWmeLCQP0oUJc5HoXR9w0czgSD5v5fStd2p4ZF2XZ1Q5YclbIlvuqpO7Tz8XCYA== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; b=TlLXanWfEcNHf1QKOA4+WFOS9kAwKCBSN+GtsRXsaXIYD9AnyWN15xyuuH0kvknxiG5k02nrkbI35H1rxiWfSlB5o2Di74bhI4GwGoq9dBU9O2jjGQgOSCX2DP7CB5181/qFptiukTln2BMBqWiP4gVgl0fjmnHKGOI/K9i1EMGn6GLjZ9UDAhT8aVB/uPBPDsUCAzndyPESCGHXQISjS6LgkAazxUw3pjwinJFbz57D9U8/MvWIdMOKqn3UtH5hll5Zzvyh/YssDiZTl/hD+ETloasfTNb+LR6DsUMlladXx1NBEkGr5LEoEgQ/hze2tnWOxTfQa3V5OJgz9jMGLA== 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=JPILx2WGJL6OuqPuDyg+504gLdJZpDhkZWCSEeM1ksU=; b=lVTG9UvHNy7QBTHyrBR0VBGgUYQLP1sapsChGLn2TIKgJwu1d229OkKvjcfq/rhZTbbeATOUJ3A6y059w+C9YELqyyqk47weM7Szd+H5MImsZDXci5OfoKBM+OqVHYtN1svFQdf0/DTjD+qLQjoshc4eMczi0UnwJNJuDHpmrAY1emPKWhy4aoDJn3qjPRVS756eonG0mGjecnU2zMsbzmKa+8A3iqqYZNPinotABnWdH2TKAKXf7wQVez/TiCaliRffphA7HYShg+fs57XuE6FzvfI0vbJOh13Cf9lPgF1e966aa8+YxP9A2O+gCY4uCFeGnEz7XjUdRVuR0hxDaw== 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 KL1PR0601MB4482.apcprd06.prod.outlook.com (2603:1096:820:77::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.24; Fri, 7 Jul 2023 02:42:37 +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.025; Fri, 7 Jul 2023 02:42:37 +0000 From: Yangtao Li To: Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , Michal Simek Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] misc/xilinx_sdfec: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 10:42:22 +0800 Message-Id: <20230707024224.78907-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707024224.78907-1-frank.li@vivo.com> References: <20230707024224.78907-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR02CA0024.apcprd02.prod.outlook.com (2603:1096:3:17::36) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4482:EE_ X-MS-Office365-Filtering-Correlation-Id: 3451c66e-964b-4c2a-a5c2-08db7e93d2ee X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: B9+7Su0s2MfwjSsC6fBMDjuWa6BIV0lJOQ+pdaK4M2Tn24+VCU4F1TJxVGg54GJEX75v4Gvw0+9MCghzt3AiK29WdeSqI/5vyI7JWKBalbJpA12dhqd/LMt6V81enMc9gVOcUo9btqKpK0nfgLmt919AgfMKvWmqIgi2M57dEvKwFYiONtbbSMYC2jZ9T3Q5hQBtU64K3YkdozbBhbxjrtsatN/nQK6CaapBUFZSaYLLx2Dy0t7fXicN4Lygq04U00Jbnn/5iBZ2CFRAgn4y1wUToTkTlU2zE4X/95NVQBbdowqT7JrTK/6IGU6dA6qH3feyT6NnhFhi6WFbop7wxr4JoU7MdCVA9wQDIUgvxzFIk+ku+s7pONk5weUZw+rPBU7bNxdqeRqj8aI36p77Wj3t/GEm/t3ZbvXgZSyoKOgAB5y+sxMHBloJURausI6szZ6ioOK1RzjKibUGLhjZodurMyXSqJpVjO2JkOND6L1ZnSeSEixeQv8UoR4sHyl/DtkuZIT8G+OT4Zmp+r/PPpnD0XPOgLbHHGzmEO2yQIMbNe1/nVEX2Rr/znoVTWomkbm+AGmKQ01LrGvK92OWlbGttOARHiUo2tHF/EoI88mBfFhsoC7gJySiSzacHYgy 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)(396003)(366004)(136003)(39860400002)(346002)(376002)(451199021)(6506007)(83380400001)(38100700002)(86362001)(36756003)(38350700002)(110136005)(6512007)(6486002)(6666004)(52116002)(8676002)(8936002)(5660300002)(478600001)(316002)(4326008)(2906002)(41300700001)(66476007)(66946007)(66556008)(4744005)(186003)(2616005)(1076003)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 5z2ISQyW5yIHEFsbYAXPtplgNps39vkyZ0+QM0M1dpIntrpjR3PkJbaCPBUII0l/O06Xom+fGaiSmp4D5o0Z/3i/QFj7WEFbEfMKeMuwhRtvEZC9fcFYGijt+tkmr2bdmN1UIM4U/R16Oy5gTJnuVMQIAy8We5nYH055f9WOuYX/PyGIr7UGnAwFMowVVrEufF7p4k6yFEheAkbN0D3QGzh5dC8ZhHF68WeD+LoQ8l8FqA7Bm8ZTvXDDF2QwjiWs5sZn73uEjNCTwQlFFvw9BLdlEsW1k77FdUuhydnoyKaTKhrQ44z0Gy6bvObPogfbB4j53Vli7Ewmzt5WPEniik2vImwW0K5tbuxSIMyEVbVf+9c7Vew2di1KmCtPqFZjeWiAKaR4CeAYEffhf7nzFmdR9b/mP2D3rOSn9qmSGK/Q2CHbyHAeHcZYHg6urCu4U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7iQXu6BSoTp05zbyVc8n0uzNBm5I7lut7+IfP4BziltqrsuMyUwealKfVZ8tPz/FWOUIr X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3451c66e-964b-4c2a-a5c2-08db7e93d2ee X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 02:42:36.9945 (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: uvr68kGLQLLaSQ+AMERxwXIvncDPRLjHAK5A71MdS9kU0tvhy+iQdqrA23T8kL/j6cCWSD0QuRS0IcGGDXN5CQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4482 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,URIBL_BLOCKED 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?1770730061068046260?= X-GMAIL-MSGID: =?utf-8?q?1770730061068046260?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Michal Simek --- drivers/misc/xilinx_sdfec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/misc/xilinx_sdfec.c b/drivers/misc/xilinx_sdfec.c index 270ff4c5971a..0877c42fb8e7 100644 --- a/drivers/misc/xilinx_sdfec.c +++ b/drivers/misc/xilinx_sdfec.c @@ -1347,7 +1347,6 @@ static int xsdfec_probe(struct platform_device *pdev) { struct xsdfec_dev *xsdfec; struct device *dev; - struct resource *res; int err; bool irq_enabled = true; @@ -1363,8 +1362,7 @@ static int xsdfec_probe(struct platform_device *pdev) return err; dev = xsdfec->dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - xsdfec->regs = devm_ioremap_resource(dev, res); + xsdfec->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(xsdfec->regs)) { err = PTR_ERR(xsdfec->regs); goto err_xsdfec_dev;