linux/drivers/cpufreq/spear-cpufreq.c
Dan Carpenter 6a9e0e0f75 cpufreq: spear: Fix an IS_ERR() vs NULL bug in spear1340_set_cpu_rate()
The clk_get_parent() function doesn't return error pointers, it returns
NULL on error.  Update the error checking to match.

Fixes: 4209932211 ("cpufreq: SPEAr: Add CPUFreq driver")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Zhongqiu Han <zhongqiu.han@oss.qualcomm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
2026-07-15 11:15:13 +05:30

242 lines
5.8 KiB