diff options
Diffstat (limited to 'drivers/opp')
| -rw-r--r-- | drivers/opp/core.c | 3 | ||||
| -rw-r--r-- | drivers/opp/of.c | 3 |
2 files changed, 2 insertions, 4 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; diff --git a/drivers/opp/of.c b/drivers/opp/of.c index 6ea3b1bd6280..f96adfd5b219 100644 --- a/drivers/opp/of.c +++ b/drivers/opp/of.c @@ -303,8 +303,7 @@ static int _of_opp_alloc_required_opps(struct opp_table *opp_table, if (!count) return 0; - opp->required_opps = kzalloc_objs(*opp->required_opps, count, - GFP_KERNEL); + opp->required_opps = kzalloc_objs(*opp->required_opps, count); if (!opp->required_opps) return -ENOMEM; |
