summaryrefslogtreecommitdiff
path: root/drivers/interconnect
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/interconnect')
-rw-r--r--drivers/interconnect/core.c4
-rw-r--r--drivers/interconnect/debugfs-client.c2
-rw-r--r--drivers/interconnect/qcom/icc-common.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/interconnect/core.c b/drivers/interconnect/core.c
index e4e236798357..fde208ebe685 100644
--- a/drivers/interconnect/core.c
+++ b/drivers/interconnect/core.c
@@ -408,7 +408,7 @@ struct icc_node_data *of_icc_get_from_provider(const struct of_phandle_args *spe
return ERR_CAST(node);
if (!data) {
- data = kzalloc_obj(*data, GFP_KERNEL);
+ data = kzalloc_obj(*data);
if (!data)
return ERR_PTR(-ENOMEM);
data->node = node;
@@ -827,7 +827,7 @@ static struct icc_node *icc_node_create_nolock(int id)
if (node)
return node;
- node = kzalloc_obj(*node, GFP_KERNEL);
+ node = kzalloc_obj(*node);
if (!node)
return ERR_PTR(-ENOMEM);
diff --git a/drivers/interconnect/debugfs-client.c b/drivers/interconnect/debugfs-client.c
index 227235b4b184..5107bff53173 100644
--- a/drivers/interconnect/debugfs-client.c
+++ b/drivers/interconnect/debugfs-client.c
@@ -86,7 +86,7 @@ static int icc_get_set(void *data, u64 val)
goto err_free;
}
- debugfs_path = kzalloc_obj(*debugfs_path, GFP_KERNEL);
+ debugfs_path = kzalloc_obj(*debugfs_path);
if (!debugfs_path) {
ret = -ENOMEM;
goto err_put;
diff --git a/drivers/interconnect/qcom/icc-common.c b/drivers/interconnect/qcom/icc-common.c
index 5f90fcf7b22e..a25564fe1ebd 100644
--- a/drivers/interconnect/qcom/icc-common.c
+++ b/drivers/interconnect/qcom/icc-common.c
@@ -19,7 +19,7 @@ struct icc_node_data *qcom_icc_xlate_extended(const struct of_phandle_args *spec
if (IS_ERR(node))
return ERR_CAST(node);
- ndata = kzalloc_obj(*ndata, GFP_KERNEL);
+ ndata = kzalloc_obj(*ndata);
if (!ndata)
return ERR_PTR(-ENOMEM);