EDAC/highbank: Use of_device_get_match_data()
Subsystems (2)
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
Signed-off-by Rosen Penev <[email protected]>
--- drivers/edac/highbank_mc_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/highbank_mc_edac.c +1 -1
@@ -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