net: (cpts) fix a missing check of clk_prepare
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 02:55:37 +0000 (20:55 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2018 00:20:23 +0000 (16:20 -0800)
commit2d822f2dbab7f4c820f72eb8570aacf3f35855bd
tree9835745e248a97c495b68870c69fe259df3ee740
parent26fd962bde0b15e54234fe762d86bc0349df1de4
net: (cpts) 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/ti/cpts.c