diff options
| author | 2023-03-24 18:11:27 +0800 | |
|---|---|---|
| committer | 2023-03-30 09:20:02 +0530 | |
| commit | d51c63230994f167126d9d8381011b4cb2b0ad22 (patch) | |
| tree | 7b1afbdcd36955527c27589c154276577bd561fe /include/uapi/linux/byteorder/ssh:/git:/git.zx2c4.com | |
| parent | cpufreq: Use of_property_present() for testing DT property presence (diff) | |
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: Jia-Wei Chang <jia-wei.chang@mediatek.com>
Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU")
Reported-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'include/uapi/linux/byteorder/ssh:/git:/git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
