]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: Add comment about __of_clk_get_by_name() error values
authorPhil Edworthy <phil.edworthy@renesas.com>
Mon, 3 Dec 2018 11:13:08 +0000 (11:13 +0000)
committerStephen Boyd <sboyd@kernel.org>
Wed, 6 Feb 2019 18:32:42 +0000 (10:32 -0800)
commit5c56dfe63b6e7da3d9fd84a6c553ff4d2753dd1c
treec75798256a923e36f9f9273e9e0eb1aff5e1504d
parentbfeffd155283772bbe78c6a05dec7c0128ee500c
clk: Add comment about __of_clk_get_by_name() error values

It's not immediately obvious from the code that failure to get a
clock provider can return either -ENOENT or -EINVAL. Therefore, add
a comment to highlight this.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Russell King <linux@armlinux.org.uk>
[sboyd@kernel.org: Fix comment to be proper C with ==]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clkdev.c