summaryrefslogtreecommitdiff
path: root/drivers/opp/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/opp/core.c')
-rw-r--r--drivers/opp/core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index 98893b269679..866641666e41 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -2260,8 +2260,7 @@ static int _opp_set_regulators(struct opp_table *opp_table, struct device *dev,
if (opp_table->regulators)
return 0;
- opp_table->regulators = kmalloc_objs(*opp_table->regulators, count,
- GFP_KERNEL);
+ opp_table->regulators = kmalloc_objs(*opp_table->regulators, count);
if (!opp_table->regulators)
return -ENOMEM;