summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/stm
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwtracing/stm')
-rw-r--r--drivers/hwtracing/stm/core.c6
-rw-r--r--drivers/hwtracing/stm/policy.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c
index b3df3104aa3d..37584e786bb5 100644
--- a/drivers/hwtracing/stm/core.c
+++ b/drivers/hwtracing/stm/core.c
@@ -406,7 +406,7 @@ int stm_register_protocol(const struct stm_protocol_driver *pdrv)
goto unlock;
}
- pe = kzalloc_obj(*pe, GFP_KERNEL);
+ pe = kzalloc_obj(*pe);
if (!pe)
goto unlock;
@@ -493,7 +493,7 @@ static int stm_char_open(struct inode *inode, struct file *file)
if (!dev)
return -ENODEV;
- stmf = kzalloc_obj(*stmf, GFP_KERNEL);
+ stmf = kzalloc_obj(*stmf);
if (!stmf)
goto err_put_device;
@@ -1229,7 +1229,7 @@ int stm_source_register_device(struct device *parent,
if (!stm_core_up)
return -EPROBE_DEFER;
- src = kzalloc_obj(*src, GFP_KERNEL);
+ src = kzalloc_obj(*src);
if (!src)
return -ENOMEM;
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c
index f0f8876008ed..fabaf4b14889 100644
--- a/drivers/hwtracing/stm/policy.c
+++ b/drivers/hwtracing/stm/policy.c
@@ -437,7 +437,7 @@ stp_policy_make(struct config_group *group, const char *name)
goto unlock_policy;
}
- stm->policy = kzalloc_obj(*stm->policy, GFP_KERNEL);
+ stm->policy = kzalloc_obj(*stm->policy);
if (!stm->policy) {
ret = ERR_PTR(-ENOMEM);
goto unlock_policy;