linux/Documentation
Phil Edworthy 60b8f0ddf1 clk: Add (devm_)clk_get_optional() functions
This adds clk_get_optional() and devm_clk_get_optional() functions to get
optional clocks.

They behave the same as (devm_)clk_get() except where there is no clock
producer. In this case, instead of returning -ENOENT, the function
returns NULL. This makes error checking simpler and allows
clk_prepare_enable, etc to be called on the returned reference
without additional checks.

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: Document in devres.txt]
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2019-02-06 10:33:10 -08:00
..
2018-12-31 09:41:37 -08:00
2018-10-26 16:26:32 -07:00
2018-12-25 17:41:56 -08:00
2018-12-16 19:53:06 -07:00
2018-12-28 12:11:49 -08:00
2019-01-06 11:37:44 -08:00
2019-01-05 17:57:34 -08:00
2018-12-29 09:40:40 -08:00
2018-11-01 08:42:21 -07:00
2018-10-25 06:50:48 -07:00
2019-01-04 13:13:48 -08:00
2018-03-26 12:13:21 -04:00
2018-12-28 14:48:06 -08:00
2018-12-18 16:13:04 +01:00
2018-12-31 11:46:59 -08:00
2018-12-06 10:11:40 -07:00
2018-11-26 16:56:34 +01:00
2018-05-08 09:16:41 -06:00