From patchwork Thu Feb 22 18:12:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13567901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 461A2C54791 for ; Thu, 22 Feb 2024 18:22:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1Aj+5AtWWCESgqn3e1I5KwX0KGpDClY0TI7GqfoXe5s=; b=doCS3GrHttOTwE my23fxW9f7qLahSD6Exgz71mBElPmjvmZgPnIO26Y256DW7alkgdRztzBeJ+FwWq4MqHO5dxuUVNK bD7R72OfteDALtdRe2ccjtion+F4yz7vgJAHp19sRUWjr8acjEdFY3zGuSfr9RqI32CejNJj0CN2N hZiEvWzoiwiDE9QKfvxiplNgtMKqS9BNuEeeXKL52pI86BrPA7+osgFnse0c9tEfefbyKePzylWDn tm299FS++mE8nBnfK2R/zVRi4ZqbiuNJkZtPdtjfybgnRDklficq+M9pOVgX9NBGDTxWq6R/FG6kT TX4vhU7YQgqEuMJHh9gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdDhv-000000060hE-0De2; Thu, 22 Feb 2024 18:22:07 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdDbg-00000005xdf-1yF1 for linux-arm-kernel@bombadil.infradead.org; Thu, 22 Feb 2024 18:16:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=bBJgQUpt9QPAedIUl/F1sU9yR+N7bF2zoeqIhscgJyQ=; b=CZlhKjmkFLmGB6m8tXkWZZ1fQT gotCEpDTrXlj/qyIfbmKkXm0vz4zpVGtwszjxodegrGTqFWMFc15sx1klP/+ECd2uL0yPKytPjQMz 0ypryHJFIfcUJAkJ9Kt9JR+9Qyc/LuXc32Jt345yauw5zXXLsv0FhVTzDqirrcyVa3lB3Dp2Ml6C+ C+zETK1cXJvM/2XgZS8nfBgp9U7fIrDXSu8m28Ohl5P7x6DaybVOrxj8/V2bSzqSAbsD9pwI73gKE 2yds75O/0ZObojS3kHFnx3d3NX9rGzIwYVDLZTo2S/Yq48Gq1c46wDVhole94ozJ2CM+nse3oL2wJ 7dmi334g==; Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by casper.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rdDbd-00000004Ikj-2see for linux-arm-kernel@lists.infradead.org; Thu, 22 Feb 2024 18:15:39 +0000 Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-51197ca63f5so120829e87.1 for ; Thu, 22 Feb 2024 10:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708625674; x=1709230474; darn=lists.infradead.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=bBJgQUpt9QPAedIUl/F1sU9yR+N7bF2zoeqIhscgJyQ=; b=Wdu0Ok7Gjlg/DM/sK2nC6sNMXQsc1hvGBOqpKWp5EzGHDfM8bwItMlSUBiz5Yt26sP I2Q+DKR42GocWcD9Ehks2VA/8KeO6UwIwTf2V80H5D99aTEe5NA7w50U8wbvr/WTV9kW SHMxe/dozSCXFdFq3vkpu1uHG9wZMwTLo2sR3Cch6igmvxkhT64Nt6lp84o4v0xFGEiN B0aIpS5WzqFb6PpYwwTs4Iojz0EJNBgQnnW7yE62mG6CRcWlAUOo1zNCZxNOEk0+NILE GWmwvP60HtHyzuqeBS77Fs1fCfcIfaUHG34Pd0dj4rQf8fedtL5PacVBZOKthKh2ovYp gaFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708625674; x=1709230474; 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=bBJgQUpt9QPAedIUl/F1sU9yR+N7bF2zoeqIhscgJyQ=; b=YFdFo4RVyKUDsYgaA5zd8CWVDWgdeyaFplzSNACe76EH4+4WbjWUWTmXNBQ7RoNKZ1 Ojn9E/yitIK5BpkgLzoxpaOsr+9+zrZi2AfL3xKJXY6b01SHewmJSikFu69WejfKxmed +ORXa06RgakOZJ8GKQp6U2Wof1+tFPHuRuA6v03sXvfm293uCcMzNKEPE7bfif7M4jI4 rT+e3zJL3lBnbVcDBqn0qg1VNwa6MV2nmBb+K/zHI4vkaUEpSLY0iOV7M3B+wX3CbHqg eMocCfu6duaDyG8c53gJnPodTcg0X000HlGwq4Mgav5EWDBMUYevC/1X23Nt+80hnFlm I8Zw== X-Forwarded-Encrypted: i=1; AJvYcCXedYt40kTDvOUUbrZ5gQRDpM0iJyX53e7DZ8hvR7tmFfEd8U8jN50zSa1hDOl/TQOA+l7XZNDSkHHlqFpGS2+UBhYesAZkLbahbOvomsCO1EFChvU= X-Gm-Message-State: AOJu0YxAWgmn0EfTG9iblEx6n6Wuh2gYVWr5YU86SlixgIsNUGaLXYfy lKkQdEHDrRqYPQS2dhyhXmElL9oHU5tz7LJHZVkQdhbPojjP++q1 X-Google-Smtp-Source: AGHT+IHKAOKhAnBFoPeZwONNUJ2X2BwTf+yE6S14EUUfcztnzHrErdARP1//97DTkUotDbqufLNMLg== X-Received: by 2002:a05:6512:3ba2:b0:512:a2c7:e44c with SMTP id g34-20020a0565123ba200b00512a2c7e44cmr12225023lfv.20.1708625673758; Thu, 22 Feb 2024 10:14:33 -0800 (PST) Received: from localhost ([178.176.56.174]) by smtp.gmail.com with ESMTPSA id q25-20020ac246f9000000b00512b0462438sm1744919lfo.116.2024.02.22.10.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:14:32 -0800 (PST) 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 v5 07/20] EDAC/synopsys: Use platform device devm ioremap method Date: Thu, 22 Feb 2024 21:12:52 +0300 Message-ID: <20240222181324.28242-8-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240222181324.28242-1-fancer.lancer@gmail.com> References: <20240222181324.28242-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240222_181537_737070_8F06F6C7 X-CRM114-Status: GOOD ( 11.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 9f79f14e57b2..6976ef84e952 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -1334,11 +1334,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);