summaryrefslogtreecommitdiff
path: root/drivers/opp/of.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/opp/of.c')
-rw-r--r--drivers/opp/of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/opp/of.c b/drivers/opp/of.c
index a6e16f406289..6ea3b1bd6280 100644
--- a/drivers/opp/of.c
+++ b/drivers/opp/of.c
@@ -470,7 +470,7 @@ int dev_pm_opp_of_find_icc_paths(struct device *dev,
}
num_paths = count / 2;
- paths = kzalloc_objs(*paths, num_paths, GFP_KERNEL);
+ paths = kzalloc_objs(*paths, num_paths);
if (!paths)
return -ENOMEM;