summaryrefslogtreecommitdiffstats
path: root/drivers/bcma
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2012-07-11 12:37:00 +0200
committerJohn W. Linville <linville@tuxdriver.com>2012-07-12 15:27:18 -0400
commitc334e25c9f3a95f2bd6b79fedc5170f17245b1c7 (patch)
tree83887c8b8a995fe716a3343167d4dfc91f18b75d /drivers/bcma
parente1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f (diff)
downloadlinux-c334e25c9f3a95f2bd6b79fedc5170f17245b1c7.tar.bz2
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')
-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)
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)
@@ -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;
}