drivers:tty: fix return value check in asc_init_port
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Mon, 17 Jul 2023 14:47:33 +0000 (22:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 30 Jul 2023 11:53:19 +0000 (13:53 +0200)
commit130a9571aee966ad8ba65719fe6c32db7b26db6a
tree1f8e6e7416e966c47accbe55951017eae087a4c7
parent17be181b061b4b7b72d4ffb856d94a356592bfd7
drivers:tty: fix return value check in asc_init_port

in asc_init_port, clk_prepare_enable may fail, therefore, the
return value of clk_prepare_enable should be checked.

Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Link: https://lore.kernel.org/r/20230717144733.24194-1-ruc_gongyuanjun@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/st-asc.c