OSDN Git Service

usb: dwc3: of-simple: remove include of clk-provider.h
authorShawn Guo <shawn.guo@linaro.org>
Sun, 13 Aug 2017 14:21:11 +0000 (22:21 +0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:53 +0000 (14:18 +0300)
commite7059ef82a228ba9df21f5e43b06353385b098f1
tree58ba7bd547d95f204bd3309fe7116d70c288e4e0
parent2d19cdc1cb7ab00003fccb951d6199b8d8c9ac67
usb: dwc3: of-simple: remove include of clk-provider.h

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@linaro.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/dwc3-of-simple.c