clk: ingenic: Use readl_poll_timeout instead of custom loop
authorPaul Cercueil <paul@crapouillou.net>
Thu, 3 Sep 2020 01:50:45 +0000 (03:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Oct 2020 03:04:50 +0000 (20:04 -0700)
commit21534fe39c494913849f3c46e41282b96bce7df6
treeb14e06ac2ed5479e7800b8fa5c7b9cf9ad7080ff
parent29c37341b54f7a500727799b94565fcc5dd8e6f8
clk: ingenic: Use readl_poll_timeout instead of custom loop

Use the readl_poll_timeout() function instead of rolling our own
busy-wait loops. This makes the code simpler.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200903015048.3091523-2-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c