net: stmmac: Use readl_poll_timeout
authorLABBE Corentin <clabbe.montjoie@gmail.com>
Wed, 8 Feb 2017 08:31:13 +0000 (09:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Feb 2017 20:11:25 +0000 (15:11 -0500)
commit8a70aeca80c2425b60ff821140b5b5c141e28ba1
tree094a2ccf44fa5d2e331072b04e911814d3278227
parenta5f48adc316aa21944c19019583fb9933af01b9a
net: stmmac: Use readl_poll_timeout

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

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c