From patchwork Tue Jul 4 10:18:08 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: 115693 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1113957vqx; Tue, 4 Jul 2023 03:27:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4J6Qs551mjRzO2uUyVPxwyArOREdgW1jFGdFQw4uQy4O9wOMzC+4lAbvzVBtJIjKot9d+h X-Received: by 2002:a05:6808:13c9:b0:39b:dab1:4b32 with SMTP id d9-20020a05680813c900b0039bdab14b32mr12366428oiw.0.1688466460044; Tue, 04 Jul 2023 03:27:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688466460; cv=pass; d=google.com; s=arc-20160816; b=gV9ANy/azqFNb7V7sp3o6SUNCsdFyZlfVkQAsskmJPg7o7NXvGwxerr5y9l6GrLR6s R1R5QJcgXDAYKb+2IY1Vn1y0zk2COpGjZtqASkh9x54XlbUyt450V0rxhFbYG9bZXL4Q NU00g3nbEarv9paSUKeXT+6/aNZRVahilLKDAW3ejUv58kB8ScDKAjwS+Nwd7/Vvhq8r jvgLnNZavCXvje5u0QBMxSeQT+gNdxKAh868PBAswtrTqv2dd+IDxRzJ4OuxkSouJpXy 5zl1rBRI6jwzdWi1mIx9wedz/V1961tFyzu66G5tFhN+DOGFe9NHSjI+ZCCY7/mfm2WB 3q7g== 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=vZ4IvJy94NBTYfpw+R/ZChKvscwppEmPZxxlpdBDryk=; fh=wM2abvQfwejHpm5tf+2AFiFt+G7Yl9jvhwtG1qv1Tqs=; b=Wj0pvLPjhmxCRnAu6DZ+6Z55jI9ZlVX0vnQcO5eVyLOfcTwap9PTwWQDQBKShI3jTH 7Xl9jJJ0p9QJJHWCFIz4Sf7XzuU5ZZpxFTHXuRVeyM8vD8pjzENV1iUb2k1H1iRsW7ba uRqTbV3kKpMhUOPtxOztwOr8qDbWOY7RIiw8tMJ7yh547UdCwm5QkG4PlC+WbyKeT0jl zpWABAbHv5l6bUzWjfT8ilFdtQFPS5mBH38BrJOr/2OXw336bOVJVtKeR3xDVyBpJAGL npUT/05DvzuRwgPv1dGgNOGsTkGLcWR6MBV9dogVHbjpgoJe3aULVMgYQsIu+Tayj3/S bxvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aDG143Vx; 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 95-20020a17090a0fe800b002501d633225si6899443pjz.11.2023.07.04.03.27.25; Tue, 04 Jul 2023 03:27: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=aDG143Vx; 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 S231634AbjGDKSf (ORCPT + 99 others); Tue, 4 Jul 2023 06:18:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231618AbjGDKSa (ORCPT ); Tue, 4 Jul 2023 06:18:30 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2117.outbound.protection.outlook.com [40.107.215.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95EFAF1; Tue, 4 Jul 2023 03:18:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kmTPcxgwdWNfB0+miw1oA5/uKeaXh7UcCj1q3fLtlaQOsqzl1V5nj+UJKU6MEHRvoCVFixtb1v4d1k9gkBsi7sV1o6e9mmX646qyMojzsuQIsI1BGYMtK0n2xAvuxebyNH0UO6AAqABI29YNdOitRDWQYn0HpRQ7v6iYr6m9kKWWRA1mtmqwzsxRp8FkrVx+hEcNVYvkQnw6AwKiP7rPyIxpe5zkaG4Cf5JqBFBcwFSbGEngPUOwHx/OzV5yktbvKc+PdNLJkve6ZlTPPHzjyKQKN3BFKEYyD7tA1T8ZwTm/gVEiFzKgvs8SZZEoSiY1uZgUBf81usw1ggD+KHDzaA== 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=vZ4IvJy94NBTYfpw+R/ZChKvscwppEmPZxxlpdBDryk=; b=XEBDuqUEl7Qe25xl6soZUs9RtV+e/f1vcMC6SnvpKTjTkNdTXCH5wcwWM7zmvS3+mQbwo8agVtPF6H1V/OiftDS8ouXH5hrNTFQfy9BcLdN8qpAD1JdIWITg1qfA6zlD/XayRxjhi6YO/RCiFie2iSv/54l8N46BcVfXXq4EEBp9JEsz6h2nyAMt1jo7osKsPseo7KTtDsFSdYvu0zpFJLObocf3KQB93o3nyoS9Egv279rdbHO+4Sgkg1kr8omevnvNMWZxfwBPNogqJG0lRrOsfYYyhySsKjZViq19Egv3eKgfaan8iO1Q+xA0ZZAWIoeJ3tlR9Dnl2ly1pP8LgQ== 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=vZ4IvJy94NBTYfpw+R/ZChKvscwppEmPZxxlpdBDryk=; b=aDG143VxE3luXlzxkcEvu+EoqR9MwvyIRjQZbfOyeYNa+3bvzWJzox0bLMleIAVK/X9CRaSJGD7+sRrCM6rPbr7msjcKfZtmLM6lc3xy89sYjdD5GBU/mWGcwm16T4+nUkxkAS68YZ6P8gUhGbbJTNTbnpD70FdJ/SUdI6jPA584lkNskbJU4C4XCVUgzczeLtKBdeKaJGkmz+OiIuAx8i+V2tHKsrFoiGzJfl4XQrOciOhTEz0+pX7PRT5Cnn5welNbh6r3foQooLRY34d5HOhLkcTXXmUoUEm/EFn8TZPoq2dL2ay6W3hC+shouq18Z3+nspvU7ntAHuKZaVGgLg== 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 KL1PR0601MB4274.apcprd06.prod.outlook.com (2603:1096:820:66::12) 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:27 +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:27 +0000 From: Yangtao Li To: Michal Simek , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] EDAC/synopsys: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 18:18:08 +0800 Message-Id: <20230704101811.49637-3-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> 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_|KL1PR0601MB4274:EE_ X-MS-Office365-Filtering-Correlation-Id: 84029ac0-0a54-433b-f225-08db7c780205 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GHOQ+2s9jdxxo/uGsZ8HfsJq6L1vHwnahBUsHgIlkbnGU77R5xTTDfLF8EwtKtEQ+1zphnkIT5+ny8DftUw0/dfThDB4fCjM1R6QqKbq/vq9dWCo/MwnMrVOV6HdZdDeHuQWYL5Rj9AL2KH9XQTJaDwr7Uh68aGIGzM/HOcttDTlWe4H6zGeo3IA1kzwnZ/cU/tHf8LaciG0heFCDD26WOMpI8iFBjfFeGm9HqEKgeH+eZeG0C/ktYgUvlkxpjFBCAjeHokJ+Fj9zglgZsb7lvZJLzJSdwMBDD+U9W1LbkRULK8rtYGwLpKgZzaNs+M+2H552fhnYiGci+BX8jP6+KXkM8earemoCKx1VlFfnBkWlUtUMnj+ZW1QSjz5GclqCLISY/hCjnwHmHahLCu6NjKUbll5ELCRISai3XhkTuaoRIgdzPdfiEoFKclmQ6orqmDEa/XPshaVwg8ra+5M602fQS3/U6ph2SyVfKwA0CeozCx25XNbmaCRFTt8d07wSZkvf/65gkuUZX3y6CWT+c/y0iNPVXq64rHRkfvj89spda0L+QzAw4YIaWk9d1Lxl2EXamSoJsfqXWKOMbPW5I9V4iQskQhiPxlI6skBtVByxbC5NMeAEUIKQzbo58+0 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)(376002)(346002)(39860400002)(366004)(396003)(451199021)(38350700002)(478600001)(110136005)(6666004)(5660300002)(8676002)(36756003)(8936002)(86362001)(4744005)(2906002)(38100700002)(66476007)(4326008)(66946007)(66556008)(316002)(41300700001)(83380400001)(26005)(186003)(1076003)(6506007)(2616005)(6486002)(52116002)(6512007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: prA6Yq1J2JoF7svBQOaILb0gAzSi8PKS94tFZG4x2RoVnJ+7fKFImFI8IkZOa4DX2Xo4rFSdb3j8Jl8hvcw/mRDc08rhskrOg9rA8Kz1MrgmB9noHtFLiETUp0fntQ3oe4CPjKXReRkrIISFdO83hN2hpl3UXTy1jXQY/Hi8j4lHs/9Knf8fvImjNtX3mYBFyc8vGzo8NSSeW4/QSQcPXwj5XbUHlW0nNQ9zsb+u3uAMIgnWMY/Tjau9evHMuT/o/6v9td7Q+M1PXfzUFHO8wZihPpYjmjc5/zdW1fRXQdChQe8hGtuYJS3hTaItBVDjGIhe7vjRL1z7ajvHPstYCOQJCqMcs7HWEHS9Gt6AjF226w7PLZA9iiZPnW/CL5dn2P8GOJ6zV7SvtfYl6GvrsO6Xq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VmNRAcxbHybU/sHLQS+S5fev/m8Z6kI/rID5t378EstT27G6AmyiEtTvMank+cx3z92x6K/bEIuPR2jmo1plw/pWg/h2WnA8OO5 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84029ac0-0a54-433b-f225-08db7c780205 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:27.7405 (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: cS46lUszStWPuSMlZLTaxaNcbDsXmqaNY76qHJzxe5kCt5GuHbtl0LR+I/inq8/j0qjp7lxzTtmyssLsjdBKxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4274 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?1770485406392416512?= X-GMAIL-MSGID: =?utf-8?q?1770485406392416512?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Michal Simek --- drivers/edac/synopsys_edac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index f7d37c282819..620861fb5231 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1325,11 +1325,9 @@ static int mc_probe(struct platform_device *pdev) struct synps_edac_priv *priv; struct mem_ctl_info *mci; void __iomem *baseaddr; - struct resource *res; int rc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - baseaddr = devm_ioremap_resource(&pdev->dev, res); + baseaddr = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(baseaddr)) return PTR_ERR(baseaddr);