Browse Source

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

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Geert Uytterhoeven 9 years ago
parent
commit
495bb47c5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/tty/serial/sh-sci.c

+ 1 - 1
drivers/tty/serial/sh-sci.c

@@ -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;