net: stmicro: fix a missing check of clk_prepare
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 02:57:14 +0000 (20:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2018 00:20:44 +0000 (16:20 -0800)
commitf86a3b83833e7cfe558ca4d70b64ebc48903efec
tree35ac59cc154f9fe2b3ccb3cb47872e3681d0b484
parent2d822f2dbab7f4c820f72eb8570aacf3f35855bd
net: stmicro: fix a missing check of clk_prepare

clk_prepare() could fail, so let's check its status, and if it fails,
return its error code upstream.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-sunxi.c