diff options
author | Miaoqian Lin <[email protected]> | 2022-12-31 13:58:48 +0400 |
---|---|---|
committer | Shawn Guo <[email protected]> | 2023-01-02 21:16:05 +0800 |
commit | 490748874ebf1875420fc29b335bba2075dd1b5e (patch) | |
tree | ad508b2cab124798e8c040f1e4617da24259f022 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ae066f374687d7dd06bb8c732f66d6ab3c3fd480 (diff) |
soc: imx8m: Fix incorrect check for of_clk_get_by_name()
of_clk_get_by_name() returns error pointers instead of NULL.
Use IS_ERR() checks the return value to catch errors.
Fixes: 836fb30949d9 ("soc: imx8m: Enable OCOTP clock before reading the register")
Signed-off-by: Miaoqian Lin <[email protected]>
Signed-off-by: Shawn Guo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions