aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/clkdev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/clk/clkdev.c b/drivers/clk/clkdev.c
index 9ab3db8b3988..5284fd191cca 100644
--- a/drivers/clk/clkdev.c
+++ b/drivers/clk/clkdev.c
@@ -52,6 +52,12 @@ struct clk *of_clk_get(struct device_node *np, int index)
52} 52}
53EXPORT_SYMBOL(of_clk_get); 53EXPORT_SYMBOL(of_clk_get);
54 54
55/*
56 * Beware the return values when np is valid, but no clock provider is found.
57 * If name == NULL, the function returns -ENOENT.
58 * If name != NULL, the function returns -EINVAL. This is because __of_clk_get()
59 * is called even if of_property_match_string() returns an error.
60 */
55static struct clk *__of_clk_get_by_name(struct device_node *np, 61static struct clk *__of_clk_get_by_name(struct device_node *np,
56 const char *dev_id, 62 const char *dev_id,
57 const char *name) 63 const char *name)