]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2022 12:12:46 +0000 (12:12 +0000)
commite7cab0c1ed76ac8dd222f58fc626fc9bf0075bfe
treecd742685daaf2f22a648d68b8143a235c1543408
parent37f7fb4ead5da16f77d5ff580a0d22d429bff06e
net: ethernet: ti: cpts: Handle error for clk_enable

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

Fixes: a6768280e076 ("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>
drivers/net/ethernet/ti/cpts.c