summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/imagination/pvr_power.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/imagination/pvr_power.c')
-rw-r--r--drivers/gpu/drm/imagination/pvr_power.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imagination/pvr_power.c b/drivers/gpu/drm/imagination/pvr_power.c
index b9f801c63260..c70a62192d79 100644
--- a/drivers/gpu/drm/imagination/pvr_power.c
+++ b/drivers/gpu/drm/imagination/pvr_power.c
@@ -614,11 +614,11 @@ int pvr_power_domains_init(struct pvr_device *pvr_dev)
link_count = domain_count + (domain_count - 1);
- domain_devs = kcalloc(domain_count, sizeof(*domain_devs), GFP_KERNEL);
+ domain_devs = kzalloc_objs(*domain_devs, domain_count, GFP_KERNEL);
if (!domain_devs)
return -ENOMEM;
- domain_links = kcalloc(link_count, sizeof(*domain_links), GFP_KERNEL);
+ domain_links = kzalloc_objs(*domain_links, link_count, GFP_KERNEL);
if (!domain_links)
return -ENOMEM;