mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
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 <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
ee1c90cc2c
commit
43c6128683
1 changed files with 1 additions and 2 deletions
|
|
@ -3073,8 +3073,7 @@ static struct plat_sci_port *sci_parse_dt(struct platform_device *pdev,
|
|||
p->type = SCI_OF_TYPE(match->data);
|
||||
p->regtype = SCI_OF_REGTYPE(match->data);
|
||||
|
||||
if (of_find_property(np, "uart-has-rtscts", NULL))
|
||||
sp->has_rtscts = true;
|
||||
sp->has_rtscts = of_property_read_bool(np, "uart-has-rtscts");
|
||||
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue