diff options
| author | Stephen Boyd <[email protected]> | 2016-08-25 13:35:36 -0700 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2016-08-26 12:28:27 -0700 |
| commit | 74002fcde01d8acb4ce68878e9998fad51fe7925 (patch) | |
| tree | 81e96a52108498fe32d5653933b92295bfd31c3a /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | d42c047245ae09ebc2f506c5d1730ce3113278ac (diff) | |
clk: Simplify __of_clk_get_hw_from_provider()
__of_clk_get_hw_from_provider() is confusing because it will
return EPROBE_DEFER if there isn't a ->get() or ->get_hw()
function pointer in a provider. That's just a bug though, and we
used to NULL pointer exception when ->get() was missing anyway,
so let's make this more obvious that they're not optional. The
assumption is that most providers will implement ->get_hw() so we
only fallback to the ->get() function if necessary. This
clarifies the intent and removes any possibility of probe defer
happening if clk providers are buggy.
Reported-by: Masahiro Yamada <[email protected]>
Reviewed-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions