[PATCH] usb: dwc3: of-simple: remove include of clk-provider.h
Stephen Boyd
sboyd at codeaurora.org
Thu Aug 17 14:06:30 PDT 2017
On 08/13, Shawn Guo wrote:
> From: Shawn Guo <shawn.guo at linaro.org>
>
> The header clk-provider.h is there for clock drivers (providers) to
> include, not client drivers (consumers). That said,
> of_clk_get_parent_count() is a helper function for clock providers, not
> a clk API for consumers.
>
> Let's replace of_clk_get_parent_count() with of_count_phandle_with_args()
> call, so that we can remove the include of clk-provider.h.
>
> Signed-off-by: Shawn Guo <shawn.guo at linaro.org>
> ---
Acked-by: Stephen Boyd <sboyd at codeaurora.org>
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
More information about the linux-arm-kernel
mailing list