Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5104373a authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala
Browse files

clk: Update clk_get_sys to return ENOENT on failure



clk_get_sys was updated to return EPROBE_DEFER because on the
older kernel returning ENOENT was causing drivers that probed
before the clock provider to fail instead of deferring. The new
kernel version fixes this by returning EPROBE_DEFER in
__of_clk_get_from_provider. Thus, clk_get_sys failing means that
the clock provider exists, but the requested clock is not defined
in the provider, in which case ENOENT is a more appropriate error
code to return.

Change-Id: I67d60bf5c0d2dfb71a189e351bc5b4c535d280bb
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent 22c4c57b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment