summaryrefslogtreecommitdiff
path: root/drivers/base/power/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/power/common.c')
-rw-r--r--drivers/base/power/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c
index 5902658ee94f..9bef9248a705 100644
--- a/drivers/base/power/common.c
+++ b/drivers/base/power/common.c
@@ -27,7 +27,7 @@ int dev_pm_get_subsys_data(struct device *dev)
{
struct pm_subsys_data *psd;
- psd = kzalloc_obj(*psd, GFP_KERNEL);
+ psd = kzalloc_obj(*psd);
if (!psd)
return -ENOMEM;
@@ -222,7 +222,7 @@ int dev_pm_domain_attach_list(struct device *dev,
if (num_pds <= 0)
return 0;
- pds = kzalloc_obj(*pds, GFP_KERNEL);
+ pds = kzalloc_obj(*pds);
if (!pds)
return -ENOMEM;