Skip to content

Commit

Permalink
bcma: add new cores at the end of list
Browse files Browse the repository at this point in the history
This makes order in list more natural and fixes core->core_unit for more
than 2 cores.

Signed-off-by: Rafał Miłecki <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
rmilecki authored and linvjw committed Jul 12, 2012
1 parent e1ac4b4 commit c334e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bcma/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ int bcma_bus_scan(struct bcma_bus *bus)
core->id.manuf, core->id.id, core->id.rev,
core->id.class);

list_add(&core->list, &bus->cores);
list_add_tail(&core->list, &bus->cores);
}

if (bus->hosttype == BCMA_HOSTTYPE_SOC)
Expand Down Expand Up @@ -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.class);

list_add(&core->list, &bus->cores);
list_add_tail(&core->list, &bus->cores);
err = 0;
break;
}
Expand Down

0 comments on commit c334e25

Please sign in to comment.