|
@@ -25,7 +25,6 @@
|
|
|
#include <linux/platform_device.h>
|
|
|
#include <linux/dma-mapping.h>
|
|
|
#include <linux/clk.h>
|
|
|
-#include <linux/clk-provider.h>
|
|
|
#include <linux/of.h>
|
|
|
#include <linux/of_platform.h>
|
|
|
#include <linux/pm_runtime.h>
|
|
@@ -96,7 +95,8 @@ static int dwc3_of_simple_probe(struct platform_device *pdev)
|
|
|
platform_set_drvdata(pdev, simple);
|
|
|
simple->dev = dev;
|
|
|
|
|
|
- ret = dwc3_of_simple_clk_init(simple, of_clk_get_parent_count(np));
|
|
|
+ ret = dwc3_of_simple_clk_init(simple, of_count_phandle_with_args(np,
|
|
|
+ "clocks", "#clock-cells"));
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|