summaryrefslogtreecommitdiff
path: root/drivers/opp/cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/opp/cpu.c')
-rw-r--r--drivers/opp/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/opp/cpu.c b/drivers/opp/cpu.c
index a6da7ee3ec76..0ea69c5c5001 100644
--- a/drivers/opp/cpu.c
+++ b/drivers/opp/cpu.c
@@ -51,7 +51,7 @@ int dev_pm_opp_init_cpufreq_table(struct device *dev,
if (max_opps <= 0)
return max_opps ? max_opps : -ENODATA;
- freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_KERNEL);
+ freq_table = kzalloc_objs(*freq_table, (max_opps + 1));
if (!freq_table)
return -ENOMEM;