diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2012-07-11 12:37:00 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-12 15:27:18 -0400 |
commit | c334e25c9f3a95f2bd6b79fedc5170f17245b1c7 (patch) | |
tree | 83887c8b8a995fe716a3343167d4dfc91f18b75d /drivers/bcma | |
parent | e1ac4b409037b128f9a3eca3b3ab5dbbb71a7e6f (diff) | |
download | linux-c334e25c9f3a95f2bd6b79fedc5170f17245b1c7.tar.gz linux-c334e25c9f3a95f2bd6b79fedc5170f17245b1c7.tar.bz2 linux-c334e25c9f3a95f2bd6b79fedc5170f17245b1c7.zip |
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.c | 4 |
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; } |