]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf718d496412f8d0ba7771d0eab4de1dee291e06e
tree7fc3ed0588bff0ad881ad52574c1896e1ce7b243
parent3c9b6016c8432af910f8df64dd73b096edf857aa
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: 75aecfae9131 ("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