net: ethernet: lpc_eth: Handle error for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 8 Mar 2022 06:57:39 +0000 (14:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Mar 2022 12:15:20 +0000 (12:15 +0000)
commit2169b79258c8be803d2595d6456b1e77129fe154
tree7fc3ed0588bff0ad881ad52574c1896e1ce7b243
parent2a760554dcba450d3ad61b32375b50ed6d59a87c
net: ethernet: lpc_eth: 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: b7370112f519 ("lpc32xx: Added ethernet driver")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nxp/lpc_eth.c