Merge tag 'arc-v4.2-rc3-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/vgupt...
[firefly-linux-kernel-4.4.55.git] / drivers / clk / at91 / clk-usb.c
index 0b7c3e8840bae0ebf2c97cf276e44e8ab7116f6e..b0cbd2b1ff5957027a5643963d45038435e8b1ce 100644 (file)
@@ -378,7 +378,7 @@ void __init of_at91sam9x5_clk_usb_setup(struct device_node *np,
        const char *parent_names[USB_SOURCE_MAX];
        const char *name = np->name;
 
-       num_parents = of_count_phandle_with_args(np, "clocks", "#clock-cells");
+       num_parents = of_clk_get_parent_count(np);
        if (num_parents <= 0 || num_parents > USB_SOURCE_MAX)
                return;