Skip to contentSkip to conversation

EDAC/highbank: Use of_device_get_match_data()

PATCH New Rosen Penev 1 participant 1 message Jul 29

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EDAC/highbank: Use of_device_get_match_data()

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
---
 drivers/edac/highbank_mc_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/highbank_mc_edac.c +1 -1
index 68d16cc8298d..ee1f15fe6986 100644
@@ -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;
 
Signature · 1 line
2.55.0