diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-06-24 13:55:24 +0800 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2026-08-19 17:42:05 +0200 |
| commit | 5904c4109554582ce8ded6a4dcfede48b21dbe4d (patch) | |
| tree | 9614692df275461970ac20a9225f5b854418bcf6 /tools/perf/scripts/python/bin | |
| parent | 2943ec93ee6fb4683b73e66ac516b62df091e41b (diff) | |
rtc: zynqmp: Return optional clock lookup errors
devm_clk_get_optional() returns NULL when the optional clock is absent,
but returns an ERR_PTR when the clock provider lookup fails. Probe
currently keeps the ERR_PTR and then passes it to clk_get_rate().
Return the lookup error instead. A truly absent optional clock still
reaches the existing calibration fallback through clk_get_rate(NULL).
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Fixes: 07dcc6f9c762 ("rtc: zynqmp: Add calibration set and get support")
Reviewed-by: Michal Simek <michal.simek@amd.com>
Link: https://patch.msgid.link/20260624055524.38522-1-pengpeng@iscas.ac.cn
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
