]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
clk: qcom: Return error pointers for unimplemented clocks
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 16 May 2014 23:07:14 +0000 (16:07 -0700)
committerMike Turquette <mturquette@linaro.org>
Thu, 29 May 2014 16:30:25 +0000 (09:30 -0700)
commit9ec2749bde1a5827beef5be64bfd5f24992f4ef3
tree5a2fd0a8c08c4da3615fde5006a99e0279f9b55d
parentc685841ee127e8023a33be68fd8af6fe192a3665
clk: qcom: Return error pointers for unimplemented clocks

Not all clocks are implemented but client drivers can still
request them. Currently we will return a NULL pointer to them if
the clock isn't implemented in software but NULL pointers are
valid clock pointers. Return an error pointer so that driver's
don't proceed without a clock they may actually need.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/qcom/common.c