]> 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)
commit744258d10c921d3fc1ca835df78000d24c62a86c
treecd742685daaf2f22a648d68b8143a235c1543408
parent141962fdf82039fab6e81f748382462f87ef5a11
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: 28f5ff373868 ("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