clk: rk3399: Enable/Disable the PCIEPHY clk
[oweals/u-boot.git] / drivers / clk / clk_fixed_factor.c
index 5fa20a84dbb02bf0ee85331e44f723d64dcbfc36..cf9c4ae367fd25c054ab797523b7571db13e8337 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
+#include <linux/err.h>
 
 struct clk_fixed_factor {
        struct clk parent;
@@ -24,9 +25,6 @@ static ulong clk_fixed_factor_get_rate(struct clk *clk)
        uint64_t rate;
        struct clk_fixed_factor *ff = to_clk_fixed_factor(clk->dev);
 
-       if (clk->id != 0)
-               return -EINVAL;
-
        rate = clk_get_rate(&ff->parent);
        if (IS_ERR_VALUE(rate))
                return rate;