lib: utils/serial: Skip initialize serial when dt is not enabled
authorXiang W <wxjstz@126.com>
Tue, 11 Jun 2024 11:19:31 +0000 (19:19 +0800)
committerAnup Patel <anup@brainfault.org>
Thu, 13 Jun 2024 13:06:49 +0000 (18:36 +0530)
commit179e00a320df905f22cf2788880d5e1455795bf7
treec3f44bddecf55aafca8ef281488ca60bbe0e3e16
parentb1c7c750f75dc027602688e4cb192d7b883c71d3
lib: utils/serial: Skip initialize serial when dt is not enabled

When the dt node has a status property and the value is not ok or
okay, skip initializing serial.

Signed-off-by: Xiang W <wxjstz@126.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
lib/utils/serial/fdt_serial.c