Message ID | 20230704101811.49637-4-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 v5csp1113999vqx; Tue, 4 Jul 2023 03:27:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlF5xiC3AhyB6jZ+9zc/c6V+AgcSaG4ww2SIqgcfSzUkhUNOkMyLkpEHMAGnAgxeJTq4jeo7 X-Received: by 2002:a05:6358:e917:b0:134:e3d2:1e5d with SMTP id gk23-20020a056358e91700b00134e3d21e5dmr3291931rwb.22.1688466466849; Tue, 04 Jul 2023 03:27:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688466466; cv=pass; d=google.com; s=arc-20160816; b=ftNQH71hyvQpk2LyRFw++zCblwohcVLq37mMk313ZFTz0Fi+DqWbm4z2yrNe1+eja5 EQUVY8DVd4ZDO1VbzOEXX+2YJWvM+LDCu9RSTPkj6nC/17epCuX8p+ZwE6+YZBxVfR0L vjmgGXw66GVjfcuiQ00F7Uxm8rdcgKdNWau1LK9CvzBGFEBpJ84o+yR3x4bPBgiuyk0V MoDXKviPpRmtGCZEE5IdNqvfx60Z3YoaUZEOJ7Pk1l9qWX9/4sPcvdsRd2f3FXMf6wqM JaJUEhnheN9EN6jqlSpGgX1sCCvyJNghdZKfstzGV5oRskgnzYq7o+rUbOaGJl5cyE+X NfHg== 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=VeJYHVk7hRz1R3iD0xTjqT6YET613q1QKHzKZ94ByfA=; fh=ywTf6tL+BLLEYu2Ucl4aXUN3W81F5DopfoT99mF2sYE=; b=oK8D/etMqaEpROv/Hu2te5oivL3ds7EyVXc6qPVONFx6pf9Xp2iRatJnvfFI8MROuM NVxyxvXEcdBBqwuy0bXtXPF3wjTFmjqM4r5j5ZNi+9rR3whvP2hB7QNsHgZXAWLpXFPL e27bsVl9jVZcgzHRRpegGYz2NCwP2Es/oxO0f0GWb8h4e14KyS4CcVQV/qDWzUkNk5ZB dfEc1/QPSmRbz/BKB3NAQLLshxmCElz2Zx1pAPF+pbLzj8ISHwCQPqmAWtIrEMHL5Tmi 5utYV5CR+GhT9rZmpsNkcM38lT3/eZ9P6xBqpUGoVoramdF88Fr3BtRHRy5zEKDMEauP EAiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=TwemSCbu; 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 d22-20020a63f256000000b0054fdcafcc67si19726980pgk.604.2023.07.04.03.27.32; Tue, 04 Jul 2023 03:27:46 -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=TwemSCbu; 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 S231772AbjGDKSr (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 06:18:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231134AbjGDKSg (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 06:18:36 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2112.outbound.protection.outlook.com [40.107.117.112]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CDCF107; Tue, 4 Jul 2023 03:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HuOzv4Krs+tl8DQdQO3IjHaA8JHS3+IfBL9RzhjRMDQMaIRcuR4SeVqPK3llDp/7qrb5r29ViHkePA4290QPBCFH0dlN0CsMP7h4VHDu1TTkiWkoe6p+B/2vK4US0QPgROcb/lr2ZXK93PyE85PKOVBzfJkDdFFZlVy6uWkioX6ELddaSI8chsGQBflWYgNmi1www+8jVip5c7X9zCRXX+vGEkZ52svlcLJLoaaII+8NFRi/XzkJOHnbgq6Zshxxcg0OptbvzuZ7GWx7GAtKldDvlGdWyezYcYe1FD+39rLe+E4siFpmAHoWHW07hXMnzFmPvyXgoFfRnH3Kihs9eg== 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=VeJYHVk7hRz1R3iD0xTjqT6YET613q1QKHzKZ94ByfA=; b=aO4zjAUCbP2IxkzS+H3zGao5EGkVXcREDcVQiVKhEbb3u1MLyA4iRDFBfngU2j83dhTUzYNRtsq1CZiSnEwkrsZeant+ZTIpfnk+mfRWhKMV3zq9AlIYXjSIYD6gbaN6KUZDK1/dT0nCw1oeIamQt9I39l0AmSYr3e9B5AZ0ESU5Ci6BGd56agBQx2vHKXyNOzQb5IiJJYldFoh7OgrlF0n6GV4Q05W7jrjH8MF8Fuy0YWpZnB2GQoCOqTx7Z2GTvLNrGfeC/Kj/ypvCGS+Ou67VLM3/wwkQKt8xeDQDxCewfnQt7sNfc1k4dIPZMvhVp54JPwtPB0B3DWJJCe5gUA== 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=VeJYHVk7hRz1R3iD0xTjqT6YET613q1QKHzKZ94ByfA=; b=TwemSCbuokpgBIyHkPJpoGJiHWYNniHYezMvZqinCF70FWTsPrpGlX+chP6VhUfHvSD6fQdEEZ8YXe5SS5dHySNmny616g4O7frdibVUD0vpnaVA4fDHwhL27RuDgwgwHkCKDxt3VMC71yxYyVrvRRTWgc+n7v9IbEDSmthX+0Y/6lNBE4KxLCWJJiJM6OCxUYUfOuhn9KAOV3op/iRvO+8JP9NWWd12/c+dHX1RQUKh4XI+3TYHAreMbcO2O90LG0SnISd2Ud8Q7fh3B1YuCbtpyL/7KuUI2PuaruvQS4Ukz2mVwRRyMsSsNEigp/r3LDnDBuI3XMxhXXodDKb8dg== 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 SEYPR06MB6036.apcprd06.prod.outlook.com (2603:1096:101:da::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 10:18:30 +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.6544.024; Tue, 4 Jul 2023 10:18:30 +0000 From: Yangtao Li <frank.li@vivo.com> To: Tero Kristo <kristo@kernel.org>, Borislav Petkov <bp@alien8.de>, Tony Luck <tony.luck@intel.com>, James Morse <james.morse@arm.com>, Mauro Carvalho Chehab <mchehab@kernel.org>, Robert Richter <rric@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/5] EDAC/ti: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:09 +0800 Message-Id: <20230704101811.49637-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704101811.49637-1-frank.li@vivo.com> References: <20230704101811.49637-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR01CA0050.apcprd01.prod.exchangelabs.com (2603:1096:4:193::21) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6036:EE_ X-MS-Office365-Filtering-Correlation-Id: 6e4ea362-4453-4e55-461a-08db7c780370 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ET8bU62SprTEt/0vrLJHG2Te32stvIN59YMs0vxHIVf1MNqpNGBMQ1kq3+zCYlwyNQpmrrfjfaCxNFGZKp4f1ascv0FRWMXzMFPVe9UQKgI1LFYSnMOgTHps4zG6fftr9y7ZwnXK+x+QAtOkUiApbQ/eeQ9U8+pgniEiTyLjlrqKTDoQTm+thotn5TuAY7KO6m5KIXf74y6ViWGuNvsJdPFZt/slMLaJ4neTyAgSE82OtqIhnLEzGKIWEUMepCW18fbJTnJDNBSQZybT0vtlD4/bcv347sA0O6UpFVhyct5le1ZpZPVD4x7PbxIOvtr638jkmnwc/Jy9Ss9RBmYcS8KYa36ZeJYNKsWcg1yn8DQ1KiXVaHHxkopJ4dJxIIUGZ8eFGtOBPTLuP3evP/YsDue8Vc+dVvx0HFYdk9VfzfMvkQT/licX3seJrhGT6lJQY4w8sJR+9N5z37atOnB0PsLsz5/IBNLkd5iOxjTj28BSFotay49BQXrrpD0bxBt7W8jIoEupX6FJDD0ntjXZNQlQc1Mzf5m1cGkNMMo7Dre7UUwnem9ZoQ1inZF24HJQvzS7Al1NDRguC9sYoDg0pVTJMzPxIui8r17PiAMH7cnI662/QZNY4MpUCD/vMVpN 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)(346002)(136003)(366004)(39860400002)(376002)(396003)(451199021)(4326008)(316002)(66946007)(66556008)(86362001)(186003)(26005)(6512007)(66476007)(1076003)(6506007)(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: X8qKkXwhoPmPKIrTYuZL/nxAvIe5MrWKr3zgB+4QeglibiBwN0HgVnQjR6YhMmiBogK4K6aKXt/L7kPg8YZGH6iwYPCV+i3OTN+xuBCsUVHkr9uj4XvoDakzAk9XrMxDvCkrVKVvQfPi0Id8avXU0+YJmE1y+Nr8sHOyYHDOnZJNwdORVvYB8mHQrZPwVfyUfqtSWqwEEMAl+XbvlJ/JrUhd9OX3CiDe1tIq0NxxoiDKBP3EMfzKoQMniwYKZrkpqq6VJ/jwwS28O2I9PFCKr5OksbYYO5ZaC2sZHC5rr9yXSE20KTbx+Q8iGD1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stKo8gcdFpwDYDlBRHwD8Vqos5rknSL4dtkkq2IiN6VRF3wI4lEfmyZi1fo3XFxuKFaDd4bJQUXxL5y4vI4vdsE3BBM6GGuFRcQnwttTswxER9t2zFhkq2Vy3OY1yMxpNVDcGrDY47TR2d4PjvFWSt5D3ORlw8AqK0TTpSFwLu7QxUJ0+yNlOJGraqvOKVSeJPItwQTEhJ9pSm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6e4ea362-4453-4e55-461a-08db7c780370 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 10:18:30.0705 (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: o7I5dnE4LvUmWHWnKBoPAXxjESPXK+szC7pFI0IH28Bt3D+C06wc6CpVkd8RtZfvMzyTr7dH5FsTT0FrMA7LEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6036 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: <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?1770485413465400539?= X-GMAIL-MSGID: =?utf-8?q?1770485413465400539?= |
Series |
[1/5] EDAC, mellanox: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 10:18 a.m. UTC
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/edac/ti_edac.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/edac/ti_edac.c b/drivers/edac/ti_edac.c index 6971ded598de..deec2d045e8c 100644 --- a/drivers/edac/ti_edac.c +++ b/drivers/edac/ti_edac.c @@ -231,7 +231,6 @@ static int ti_edac_probe(struct platform_device *pdev) { int error_irq = 0, ret = -ENODEV; struct device *dev = &pdev->dev; - struct resource *res; void __iomem *reg; struct mem_ctl_info *mci; struct edac_mc_layer layers[1]; @@ -243,8 +242,7 @@ static int ti_edac_probe(struct platform_device *pdev) if (!id) return -ENODEV; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg = devm_ioremap_resource(dev, res); + reg = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg)) return PTR_ERR(reg);