]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ethernet: ti: cpts: Handle error for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 8 Mar 2022 06:40:07 +0000 (14:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 11:57:06 +0000 (12:57 +0100)
commit27e0eb1c3725ebefb2e2696f898617bf1403f102
tree02e0c88ecb1c59c15af51ff59e0aeaaaeb6429e3
parentb7220f8e9d6c6b9594ddfb3125dad938cd478b1f
net: ethernet: ti: cpts: Handle error for clk_enable

[ Upstream commit 6babfc6e6fab068018c36e8f6605184b8c0b349d ]

As the potential failure of the clk_enable(),
it should be better to check it and return error
if fails.

Fixes: 8a2c9a5ab4b9 ("net: ethernet: ti: cpts: rework initialization/deinitialization")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/ti/cpts.c