summaryrefslogtreecommitdiffstats
path: root/drivers/bcma/scan.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-10-03 17:00:24 +0200
committerJohn W. Linville <linville@tuxdriver.com>2014-10-27 19:16:13 +0100
commitab54bc8460b5730ce4d2b50f5b928b230ec994d9 (patch)
treebb8f4fb0e8544504ab2a68a137963c316d6a347a /drivers/bcma/scan.c
parentMerge tag 'for-linville-20141024' of git://github.com/kvalo/ath (diff)
downloadlinux-ab54bc8460b5730ce4d2b50f5b928b230ec994d9.tar.xz
linux-ab54bc8460b5730ce4d2b50f5b928b230ec994d9.zip
bcma: fill core details for every device
We were setting things like dma_dev, IRQ, etc. during core registration only. We need such info for cores handled internally (e.g. ChipCommon) as well. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Acked-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/scan.c')
-rw-r--r--drivers/bcma/scan.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bcma/scan.c b/drivers/bcma/scan.c
index 14b56561a36f..917520776879 100644
--- a/drivers/bcma/scan.c
+++ b/drivers/bcma/scan.c
@@ -505,6 +505,7 @@ int bcma_bus_scan(struct bcma_bus *bus)
bus->nr_cores++;
other_core = bcma_find_core_reverse(bus, core->id.id);
core->core_unit = (other_core == NULL) ? 0 : other_core->core_unit + 1;
+ bcma_prepare_core(bus, core);
bcma_info(bus, "Core %d found: %s (manuf 0x%03X, id 0x%03X, rev 0x%02X, class 0x%X)\n",
core->core_index, bcma_device_name(&core->id),