Linux EDAC development
 help / color / mirror / Atom feed
* [PATCH] EDAC/highbank: Use of_device_get_match_data()
@ 2026-07-29  1:09 Rosen Penev
  0 siblings, 0 replies; only message in thread
From: Rosen Penev @ 2026-07-29  1:09 UTC (permalink / raw)
  To: linux-edac; +Cc: Andre Przywara, Borislav Petkov, Tony Luck, open list

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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-29  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-29  1:09 [PATCH] EDAC/highbank: Use of_device_get_match_data() Rosen Penev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox