summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2015-12-10 18:02:17 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2015-12-17 13:18:15 +0300
commit495bb47c5dfe92bedce92fd5f3a3a0258d72ac36 (patch)
treecd2c93f3b4f6a50d9d7f17e400a84af1173eff8f /drivers/tty
parent2095fc76953aeec2a091d321426daca3534fca12 (diff)
downloadlinux-495bb47c5dfe92bedce92fd5f3a3a0258d72ac36.tar.xz
serial: sh-sci: Use existing local variable in sci_parse_dt()
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/sh-sci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 5ec1a70cd2f4..36077193f111 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/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;