From: Rosen Penev <rosenp@gmail.com>
To: linux-edac@vger.kernel.org
Cc: Andre Przywara <andre.przywara@arm.com>,
Borislav Petkov <bp@alien8.de>, Tony Luck <tony.luck@intel.com>,
linux-kernel@vger.kernel.org (open list)
Subject: [PATCH] EDAC/highbank: Use of_device_get_match_data()
Date: Tue, 28 Jul 2026 18:09:12 -0700 [thread overview]
Message-ID: <20260729010912.608027-1-rosenp@gmail.com> (raw)
Use of_device_get_match_data() to retrieve the memory controller settings
instead of dereferencing match->data directly.
Keep the explicit OF match lookup because the driver still uses the
matched compatible string for the EDAC controller name.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
drivers/edac/highbank_mc_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/edac/highbank_mc_edac.c b/drivers/edac/highbank_mc_edac.c
index 68d16cc8298d..ee1f15fe6986 100644
--- a/drivers/edac/highbank_mc_edac.c
+++ b/drivers/edac/highbank_mc_edac.c
@@ -201,7 +201,7 @@ static int highbank_mc_probe(struct platform_device *pdev)
goto err;
}
- settings = id->data;
+ settings = of_device_get_match_data(&pdev->dev);
drvdata->mc_err_base = base + settings->err_offset;
drvdata->mc_int_base = base + settings->int_offset;
--
2.55.0
reply other threads:[~2026-07-29 1:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260729010912.608027-1-rosenp@gmail.com \
--to=rosenp@gmail.com \
--cc=andre.przywara@arm.com \
--cc=bp@alien8.de \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox