Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1551991rdb; Wed, 20 Sep 2023 12:20:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHvlaFlZwAYx9+p1asrrpAihJtqOqbkPa+I6jyC1+vr8+qsywkV09Sj7gBOw+Hz0o87vM8 X-Received: by 2002:a17:903:2303:b0:1bc:422a:b9fd with SMTP id d3-20020a170903230300b001bc422ab9fdmr3827492plh.13.1695237649104; Wed, 20 Sep 2023 12:20:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695237649; cv=none; d=google.com; s=arc-20160816; b=ORSx+wbfvuD1slOplJQ02q9TUCtB0Zr4YLiVv+oDidAk+v192xVDDnmeoIxgHdD9da 6irwGRYIn7P8T7nE84t8mR7u4D9zQ2iiOaJAZI2ypsxx42JJAVe7O/kwdK6Mv2KEkuUI CclDaUeIt4sLLMbbHeX1nqITRU9rAb7s8jfAiQR2FR60clsSFNSqs+hQthnic1jp0TDS S3AhdWvN+rSeD2joPjKzwnqEtmPd1g6nbQ17ICFVRzlm2Tw3VEp75hYiNeunwOrxq/go asxR4CZrHTfYs0iWTW6M0JBiDRh0oOUelupkLbaqyH70fPOMSgoP0HJ8bMoPJ/K0RxWJ dQFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KgRtaGDbHaMGWmEwhQaYHn3tA5PgGGeG5k0hEehgseI=; fh=Dnqcu1G7YxMiPJ+rEGjOOR/MtvfjezykDSRJXQQtmAE=; b=UWV6gMF5SLv/m6qBuoS1RYmdEuZ1BSEpk/i/As2V+QmGYCY9yV69o12cQinGDBlb3q T89rE1pV0JYYdqoTBsYG2rVh06sw+58uMA1hHbsDDHrgPJw/xonZ2QFVfOZbC/rTRJ2+ 8IfDqAKkuEPyHkF++omX0r8V+pUTvexv3bFBqWhWfmQO+81ZaCHAR/ukw/MuA0wvyAdR EqKAVasD13fhBV7IBg3nYFEInO3hJ9njonzB1VSiba9DQFjoKGnD5F2BHpIA2YSvesJ5 D2yDq0X+0OCwhBmX7YXGgEbc2W7J0KGaw84NT/GpIkpUBZIKew+mj8DPGDeHqy5OgqN3 u6Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WF3NTZMW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id u8-20020a17090341c800b001c470c25409si7510819ple.327.2023.09.20.12.20.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 12:20:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WF3NTZMW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 90DE181A9A5D; Wed, 20 Sep 2023 12:12:07 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbjITTMF (ORCPT + 99 others); Wed, 20 Sep 2023 15:12:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjITTLx (ORCPT ); Wed, 20 Sep 2023 15:11:53 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D3F119A; Wed, 20 Sep 2023 12:11:41 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-5041d6d8b10so364087e87.2; Wed, 20 Sep 2023 12:11:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695237099; x=1695841899; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KgRtaGDbHaMGWmEwhQaYHn3tA5PgGGeG5k0hEehgseI=; b=WF3NTZMWY/IOzP9U5n0o3/fNcL4UX/C5aqw5Yv7PJ99S7/gpDmC+PHCvbkEEBHAFhq q1VD+yAk8RmPnYYIaf2HFHOnslPzkqrFdiz+yDl0bhY+5LaGx9H2l1vMyaPQFuivWMZC FfjWd6fDa0f+5/5FK5RbZSC8C6QZiAiCYshfa+6HlpQoNGu237VZkV2wEEv47lpdoden TsMAD7lCbZbBBv0U6dRFqpr8XlsX0kkBg8B+xy6vipICbv8oKu6zlTRP4aAUu9tOvRRM /6kLL+PfqDjKIB6XktD3BhOrQBC7DHmyFuv4O0jlgg2DnaWfmD6EAveui1a/N3xf8b9E orrg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695237099; x=1695841899; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KgRtaGDbHaMGWmEwhQaYHn3tA5PgGGeG5k0hEehgseI=; b=w+AfPYtErp39jynDX2Q0URA+sj0YZ88xvZi7hjgQaw0symaRpvHsm+QdM3dS4Q21Pv KkAszjFReLHsbl57p1ymaspo6KWwzNdcCbauvKev8KRrOegJmp5S97nHz4ElY3nbskSB +sCBdo6D4m73wONrr3h3EYxF4pnEHAMrCHyaP0mDsk8Smv5z42JGbG5JhApQFdAjsqdZ LiF3x1C345u3X/Z9vX3iZEXHooYOcM00it59ttWAddNo0pyB8Jyx4wJU4LvZATHiU0Mz kIjFz+ojStyTBxENH3TpVCo1HuyfZJeD7LoxYq7SH/15lx6wnwcaN2tLqDbLSH8aH301 G4dw== X-Gm-Message-State: AOJu0Yx2eyNumqKttsZ5tPouUIAGbhZYCwWtRsDLvozgid0iTh8cSt/V JcMGM4SvFsBZY1D1hpwGM0M= X-Received: by 2002:a05:6512:a8b:b0:502:ff3b:7670 with SMTP id m11-20020a0565120a8b00b00502ff3b7670mr4078855lfu.4.1695237099249; Wed, 20 Sep 2023 12:11:39 -0700 (PDT) Received: from localhost ([178.176.81.142]) by smtp.gmail.com with ESMTPSA id eq14-20020a056512488e00b004fe2a7a2ee2sm2794990lfb.160.2023.09.20.12.11.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 12:11:38 -0700 (PDT) From: Serge Semin To: Michal Simek , Alexander Stein , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Serge Semin , Punnaiah Choudary Kalluri , Dinh Nguyen , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 07/20] EDAC/synopsys: Use platform device devm ioremap method Date: Wed, 20 Sep 2023 22:10:31 +0300 Message-ID: <20230920191059.28395-8-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230920191059.28395-1-fancer.lancer@gmail.com> References: <20230920191059.28395-1-fancer.lancer@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 20 Sep 2023 12:12:07 -0700 (PDT) DW DDRs CSRs resource descriptor is used by the devm_ioremap_resource() function invocation only in the driver probe method. Thus convert the platform_get_resource() and devm_ioremap_resource() couple to just a single devm_platform_ioremap_resource() method call. Signed-off-by: Serge Semin --- 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 6b81ac9dda8b..afe9f475cb4e 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1335,11 +1335,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); -- 2.41.0