aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/scan.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-07-11 06:37:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-07-12 15:27:18 -0400
commitc334e25c9f3a95f2bd6b79fedc5170f17245b1c7 (patch)
tree83887c8b8a995fe716a3343167d4dfc91f18b75d /drivers/bcma/scan.c
parente1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f (diff)
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: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/scan.c')
-rw-r--r--drivers/bcma/scan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/bcma/scan.c b/drivers/bcma/scan.c
index 3bc3ec26fd0e..5672b13d0951 100644
--- a/drivers/bcma/scan.c
+++ b/drivers/bcma/scan.c
@@ -491,7 +491,7 @@ int bcma_bus_scan(struct bcma_bus *bus)
491 core->id.manuf, core->id.id, core->id.rev, 491 core->id.manuf, core->id.id, core->id.rev,
492 core->id.class); 492 core->id.class);
493 493
494 list_add(&core->list, &bus->cores); 494 list_add_tail(&core->list, &bus->cores);
495 } 495 }
496 496
497 if (bus->hosttype == BCMA_HOSTTYPE_SOC) 497 if (bus->hosttype == BCMA_HOSTTYPE_SOC)
@@ -546,7 +546,7 @@ int __init bcma_bus_scan_early(struct bcma_bus *bus,
546 core->id.manuf, core->id.id, core->id.rev, 546 core->id.manuf, core->id.id, core->id.rev,
547 core->id.class); 547 core->id.class);
548 548
549 list_add(&core->list, &bus->cores); 549 list_add_tail(&core->list, &bus->cores);
550 err = 0; 550 err = 0;
551 break; 551 break;
552 } 552 }