]> git.baikalelectronics.ru Git - kernel.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)
commit97cafaacfba7ded880b804f13067a01fe1a258d2
treec75798256a923e36f9f9273e9e0eb1aff5e1504d
parentf9bb4b753eb00c02014e4467a28609f4f6ac7f88
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