net: stmmac: use readl_poll_timeout() function in init_systime()
authorDejin Zheng <zhengdejin5@gmail.com>
Mon, 16 Mar 2020 02:32:53 +0000 (10:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 09:10:09 +0000 (02:10 -0700)
commitff8ed737860e9b5b898ab6d2ff05e2c6021c21b0
tree1a4186c7764097fd32114d496883edaa9a927e90
parenta1dd3875fd65549bb8b8b2d2916dc9fec2727306
net: stmmac: use readl_poll_timeout() function in init_systime()

The init_systime() function use an open coded of readl_poll_timeout().
Replace the open coded handling with the proper function.

Signed-off-by: Dejin Zheng <zhengdejin5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c