]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Mar 2022 13:26:44 +0000 (14:26 +0100)
commit5d07fca06b2e80c4ee70966c3fd27db8d1bb2c68
treef47c072c156a4ec2f279544fa8b93009db90638a
parentaf6d58401ccbb6d98966e001dff09de3ccbd9ec8
net: ethernet: lpc_eth: Handle error for clk_enable

[ Upstream commit 2169b79258c8be803d2595d6456b1e77129fe154 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/nxp/lpc_eth.c