diff options
author | Geert Uytterhoeven <[email protected]> | 2018-04-18 16:50:03 +0200 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2018-05-02 08:33:52 -0700 |
commit | 54d52ad940bb50284c85adcf481413fb3b82925a (patch) | |
tree | 6b17383d2ae12f4d9ed4f761abc02e45283baee5 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | b799cac753e3efa8c38e8e0061da36705aad1e27 (diff) |
soc: rockchip: power-domain: Use of_clk_get_parent_count() instead of open coding
As of_clk_get_parent_count() returns zero on failure, while
of_count_phandle_with_args() might return a negative error code, this
also fixes the issue of possibly using a negative number in the
allocation below.
Signed-off-by: Geert Uytterhoeven <[email protected]>
Reviewed-by: Heiko Stuebner <[email protected]>
Reviewed-by: Daniel Lezcano <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions