MIPS: Alchemy: Remove direct access to prepare_count field of struct clk
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 20 Oct 2014 13:40:01 +0000 (15:40 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 24 Nov 2014 06:45:17 +0000 (07:45 +0100)
commit24c71c83ed5994f07aabe137decbe3434791938c
tree53b4a1b4e9cea8f5a2f2d3814edeed98d82ea247
parenta45da5659852bd4cbe453b49f5b26def65f5a6bf
MIPS: Alchemy: Remove direct access to prepare_count field of struct clk

Replacing it with a call to __clk_is_prepared(), which isn't entirely
equivalent but in practice shouldn't matter.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Mike Turquette <mturquette@linaro.org>
Cc: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Cc: Manuel Lauss <manuel.lauss@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/8120/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/alchemy/common/clock.c