summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-11 15:09:05 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-09-11 15:09:05 +0200
commit1c00f73c8361fa26e3d28e93fb922a6aa958739c (patch)
tree2b2fb56448c6fecd7e9692aca791af0d97f758d9 /drivers
parent2ce7598c9a453e0acd0e07be7be3f5eb39608ebd (diff)
parentd359992070901bcd774615910d36cec67dbdb1a7 (diff)
Merge branch 'pm-cpufreq'
* pm-cpufreq: cpufreq / OPP: Fix the order of arguments for kcalloc()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/cpufreq/cpufreq_opp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq_opp.c b/drivers/cpufreq/cpufreq_opp.c
index f7a32d2326c6..773bcde893c0 100644
--- a/drivers/cpufreq/cpufreq_opp.c
+++ b/drivers/cpufreq/cpufreq_opp.c
@@ -60,7 +60,7 @@ int dev_pm_opp_init_cpufreq_table(struct device *dev,
goto out;
}
- freq_table = kcalloc(sizeof(*freq_table), (max_opps + 1), GFP_ATOMIC);
+ freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_ATOMIC);
if (!freq_table) {
ret = -ENOMEM;
goto out;