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)
commit6babfc6e6fab068018c36e8f6605184b8c0b349d
treecd742685daaf2f22a648d68b8143a235c1543408
parent030141b0fce1e823190b07b1a592b5ccdab3f5fd
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: 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>
drivers/net/ethernet/ti/cpts.c