Commit 0c6c0280 authored by Yi Yang's avatar Yi Yang Committed by Greg Kroah-Hartman
Browse files

serial: tegra: handle clk prepare error in tegra_uart_hw_init()



[ Upstream commit 5abd0114 ]

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

Fixes: e9ea096d ("serial: tegra: add serial driver")
Signed-off-by: default avatarYi Yang <yiyang13@huawei.com>
Link: https://lore.kernel.org/r/20230817105406.228674-1-yiyang13@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 9cce8ef7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment