[PATCH v9 0/2] clk: Add functions to get optional clocks

From: Phil Edworthy
Date: Mon Dec 03 2018 - 06:13:21 EST


Quite a few drivers get an optional clock, e.g. a bus clock required to
access peripheral's registers that is always enabled on some devices.

v9:
- Add a separate patch to add a comment about __of_clk_get_by_name() error
values.
- Add brackets after devm_clk_get so people know it's a function.
- Add kernel doc for clk_get_optional().


Phil Edworthy (2):
clk: Add comment about __of_clk_get_by_name() error values
clk: Add (devm_)clk_get_optional() functions

drivers/clk/clk-devres.c | 11 +++++++++++
drivers/clk/clkdev.c | 6 ++++++
include/linux/clk.h | 36 ++++++++++++++++++++++++++++++++++++
3 files changed, 53 insertions(+)

--
2.17.1