OSDN Git Service

serial: sh-sci: Use existing local variable in sci_parse_dt()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 10 Dec 2015 15:02:17 +0000 (16:02 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 17 Dec 2015 10:18:15 +0000 (11:18 +0100)
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/tty/serial/sh-sci.c

index 5ec1a70..3607719 100644 (file)
@@ -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;