diff options
Diffstat (limited to 'drivers/cpufreq/amd-pstate-ut.c')
-rw-r--r-- | drivers/cpufreq/amd-pstate-ut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/amd-pstate-ut.c b/drivers/cpufreq/amd-pstate-ut.c index 3947b7138184..e4a5b4d90f83 100644 --- a/drivers/cpufreq/amd-pstate-ut.c +++ b/drivers/cpufreq/amd-pstate-ut.c @@ -71,7 +71,7 @@ static bool get_shared_mem(void) ssize_t ret; if (!boot_cpu_has(X86_FEATURE_CPPC)) { - filp = filp_open(path, FMODE_PREAD, 0); + filp = filp_open(path, O_RDONLY, 0); if (IS_ERR(filp)) pr_err("%s unable to open %s file!\n", __func__, path); else { |