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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/opp/core.c b/drivers/opp/core.c
index a109d4dd5316..98893b269679 100644
--- a/drivers/opp/core.c
+++ b/drivers/opp/core.c
@@ -1532,7 +1532,7 @@ static struct opp_table *_allocate_opp_table(struct device *dev, int index)
* Allocate a new OPP table. In the infrequent case where a new
* device is needed to be added, we pay this penalty.
*/
- opp_table = kzalloc_obj(*opp_table, GFP_KERNEL);
+ opp_table = kzalloc_obj(*opp_table);
if (!opp_table)
return ERR_PTR(-ENOMEM);
@@ -2363,7 +2363,7 @@ static int _opp_set_clknames(struct opp_table *opp_table, struct device *dev,
if (opp_table->clks)
return 0;
- opp_table->clks = kmalloc_objs(*opp_table->clks, count, GFP_KERNEL);
+ opp_table->clks = kmalloc_objs(*opp_table->clks, count);
if (!opp_table->clks)
return -ENOMEM;
@@ -2548,7 +2548,7 @@ int dev_pm_opp_set_config(struct device *dev, struct dev_pm_opp_config *config)
unsigned int id;
int ret;
- data = kmalloc_obj(*data, GFP_KERNEL);
+ data = kmalloc_obj(*data);
if (!data)
return -ENOMEM;