aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/uv/bios.h
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2018-12-03 11:13:09 +0000
committerStephen Boyd <sboyd@kernel.org>2019-02-06 10:33:10 -0800
commit60b8f0ddf1a927ef02141a6610fd52575134f821 (patch)
tree60ea4fd636e291ff196d984885d2690571c9021b /arch/x86/include/asm/uv/bios.h
parentclk: Add comment about __of_clk_get_by_name() error values (diff)
downloadlinux-dev-60b8f0ddf1a927ef02141a6610fd52575134f821.tar.xz
linux-dev-60b8f0ddf1a927ef02141a6610fd52575134f821.zip
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>
Diffstat (limited to 'arch/x86/include/asm/uv/bios.h')
0 files changed, 0 insertions, 0 deletions