Commit c334e25c authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

bcma: add new cores at the end of list

This makes order in list more natural and fixes core->core_unit for more
than 2 cores.
Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e1ac4b40
...@@ -491,7 +491,7 @@ int bcma_bus_scan(struct bcma_bus *bus) ...@@ -491,7 +491,7 @@ int bcma_bus_scan(struct bcma_bus *bus)
core->id.manuf, core->id.id, core->id.rev, core->id.manuf, core->id.id, core->id.rev,
core->id.class); core->id.class);
list_add(&core->list, &bus->cores); list_add_tail(&core->list, &bus->cores);
} }
if (bus->hosttype == BCMA_HOSTTYPE_SOC) if (bus->hosttype == BCMA_HOSTTYPE_SOC)
...@@ -546,7 +546,7 @@ int __init bcma_bus_scan_early(struct bcma_bus *bus, ...@@ -546,7 +546,7 @@ int __init bcma_bus_scan_early(struct bcma_bus *bus,
core->id.manuf, core->id.id, core->id.rev, core->id.manuf, core->id.id, core->id.rev,
core->id.class); core->id.class);
list_add(&core->list, &bus->cores); list_add_tail(&core->list, &bus->cores);
err = 0; err = 0;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment