serial: tegra: handle clk prepare error in tegra_uart_hw_init()
authorYi Yang <yiyang13@huawei.com>
Thu, 17 Aug 2023 10:54:06 +0000 (18:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Aug 2023 13:29:18 +0000 (15:29 +0200)
commit5abd01145d0cc6cd1b7c2fe6ee0b9ea0fa13671e
tree1706a6b63e1c2899d4b9c588b71c723c439c2816
parent8a6498f2b94333f1793bc912b11830655f975470
serial: tegra: handle clk prepare error in tegra_uart_hw_init()

In tegra_uart_hw_init(), the return value of clk_prepare_enable() should
be checked since it might fail.

Fixes: e9ea096dd225 ("serial: tegra: add serial driver")
Signed-off-by: Yi Yang <yiyang13@huawei.com>
Link: https://lore.kernel.org/r/20230817105406.228674-1-yiyang13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial-tegra.c