diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2017-08-13 15:11:24 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 14:51:20 -0400 |
commit | 43c61286839761a5275c889364fc2588a756f197 (patch) | |
tree | 035fa052c41c556efa55a7f0fc845d2003c99feb | |
parent | ee1c90cc2cea80638f559c552371ee6893ca9d9e (diff) |
serial: sh-sci: use of_property_read_bool()
Use more compact of_property_read_bool() call for a boolean property
instead of of_find_property() call in sci_parse_dt().
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/sh-sci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index e08b16b070c0..784dd42002ea 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c | |||
@@ -3073,8 +3073,7 @@ static struct plat_sci_port *sci_parse_dt(struct platform_device *pdev, | |||
3073 | p->type = SCI_OF_TYPE(match->data); | 3073 | p->type = SCI_OF_TYPE(match->data); |
3074 | p->regtype = SCI_OF_REGTYPE(match->data); | 3074 | p->regtype = SCI_OF_REGTYPE(match->data); |
3075 | 3075 | ||
3076 | if (of_find_property(np, "uart-has-rtscts", NULL)) | 3076 | sp->has_rtscts = of_property_read_bool(np, "uart-has-rtscts"); |
3077 | sp->has_rtscts = true; | ||
3078 | 3077 | ||
3079 | return p; | 3078 | return p; |
3080 | } | 3079 | } |