Commit 495bb47c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven

serial: sh-sci: Use existing local variable in sci_parse_dt()

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 2095fc76
......@@ -2635,7 +2635,7 @@ sci_parse_dt(struct platform_device *pdev, unsigned int *dev_id)
if (!IS_ENABLED(CONFIG_OF) || !np)
return NULL;
match = of_match_node(of_sci_match, pdev->dev.of_node);
match = of_match_node(of_sci_match, np);
if (!match)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment