Skip to content
Commit d51c6323 authored by Jia-Wei Chang's avatar Jia-Wei Chang Committed by Viresh Kumar
Browse files

cpufreq: mediatek: fix passing zero to 'PTR_ERR'



In order to prevent passing zero to 'PTR_ERR' in
mtk_cpu_dvfs_info_init(), we fix the return value of of_get_cci() using
error pointer by explicitly casting error number.

Signed-off-by: default avatarJia-Wei Chang <jia-wei.chang@mediatek.com>
Fixes: 0daa4732

 ("cpufreq: mediatek: Link CCI device to CPU")
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent b8f3a396
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment