aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/spr/ioat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/xeon_sp/spr/ioat.c')
-rw-r--r--src/soc/intel/xeon_sp/spr/ioat.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/soc/intel/xeon_sp/spr/ioat.c b/src/soc/intel/xeon_sp/spr/ioat.c
index 02f35cfe77..60936a8a42 100644
--- a/src/soc/intel/xeon_sp/spr/ioat.c
+++ b/src/soc/intel/xeon_sp/spr/ioat.c
@@ -45,12 +45,7 @@ static void create_ioat_domain(const union xeon_domain_path dp, struct bus *cons
domain->ops = &ioat_domain_ops;
- domain->link_list = calloc(1, sizeof(struct bus));
- if (!domain->link_list)
- die("%s: out of memory.\n", __func__);
-
- struct bus *const bus = domain->link_list;
- bus->dev = domain;
+ struct bus *const bus = alloc_bus(domain);
bus->secondary = bus_base;
bus->subordinate = bus->secondary;
bus->max_subordinate = bus_limit;