summaryrefslogtreecommitdiff
path: root/drivers/bus/ti-sysc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bus/ti-sysc.c')
-rw-r--r--drivers/bus/ti-sysc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c
index 610354ce7f8f..a5b9507de37c 100644
--- a/drivers/bus/ti-sysc.c
+++ b/drivers/bus/ti-sysc.c
@@ -354,7 +354,7 @@ static int sysc_add_named_clock_from_child(struct sysc *ddata,
* limit for clk_get(). If cl ever needs to be freed, it should be done
* with clkdev_drop().
*/
- cl = kzalloc(sizeof(*cl), GFP_KERNEL);
+ cl = kzalloc_obj(*cl);
if (!cl)
return -ENOMEM;
@@ -2470,7 +2470,7 @@ static void sysc_add_restored(struct sysc *ddata)
{
struct sysc_module *restored_module;
- restored_module = kzalloc(sizeof(*restored_module), GFP_KERNEL);
+ restored_module = kzalloc_obj(*restored_module);
if (!restored_module)
return;
@@ -2953,7 +2953,7 @@ static int sysc_add_disabled(unsigned long base)
{
struct sysc_address *disabled_module;
- disabled_module = kzalloc(sizeof(*disabled_module), GFP_KERNEL);
+ disabled_module = kzalloc_obj(*disabled_module);
if (!disabled_module)
return -ENOMEM;
@@ -2984,7 +2984,7 @@ static int sysc_init_static_data(struct sysc *ddata)
if (sysc_soc)
return 0;
- sysc_soc = kzalloc(sizeof(*sysc_soc), GFP_KERNEL);
+ sysc_soc = kzalloc_obj(*sysc_soc);
if (!sysc_soc)
return -ENOMEM;