]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - drivers/clk/clkdev.c
Merge branches 'clk-optional', 'clk-devm-clkdev-register', 'clk-allwinner', 'clk...
[thirdparty/kernel/stable.git] / drivers / clk / clkdev.c
index 4621f8a91fc01f80f31b0e3949a8c8c1adb5c8d4..4cfe39636105679cf97e2d04bab1eed189215baa 100644 (file)
@@ -52,6 +52,12 @@ struct clk *of_clk_get(struct device_node *np, int index)
 }
 EXPORT_SYMBOL(of_clk_get);
 
+/*
+ * Beware the return values when np is valid, but no clock provider is found.
+ * If name == NULL, the function returns -ENOENT.
+ * If name != NULL, the function returns -EINVAL. This is because __of_clk_get()
+ * is called even if of_property_match_string() returns an error.
+ */
 static struct clk *__of_clk_get_by_name(struct device_node *np,
                                        const char *dev_id,
                                        const char *name)