diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-12-02 16:07:43 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2012-12-02 16:07:43 +0000 |
commit | 3399d16dd78ef3a6c2b3af632590a97fd8d09f2d (patch) | |
tree | 5ce93cbce899a5ca4469a43f8208361ba1e0650f /package/broadcom-wl | |
parent | c233a088f05e263671b2bac26e384db348760516 (diff) | |
download | mtk-20170518-3399d16dd78ef3a6c2b3af632590a97fd8d09f2d.zip mtk-20170518-3399d16dd78ef3a6c2b3af632590a97fd8d09f2d.tar.gz mtk-20170518-3399d16dd78ef3a6c2b3af632590a97fd8d09f2d.tar.bz2 |
broadcom-wl: get the mmio address directly from the struct if bcma is used.
SVN-Revision: 34452
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r-- | package/broadcom-wl/src/glue/wl_glue.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/package/broadcom-wl/src/glue/wl_glue.c b/package/broadcom-wl/src/glue/wl_glue.c index 0504232..bf009e5 100644 --- a/package/broadcom-wl/src/glue/wl_glue.c +++ b/package/broadcom-wl/src/glue/wl_glue.c @@ -88,7 +88,6 @@ static struct ssb_driver wl_glue_ssb_driver = { #ifdef CONFIG_BCMA static int wl_glue_bcma_probe(struct bcma_device *dev) { - void *mmio; void *wldev; if (!attach_cb) @@ -109,8 +108,7 @@ static int wl_glue_bcma_probe(struct bcma_device *dev) * 0x1000 = BCMA_CORE_SIZE */ - mmio = (void *) 0x18000000 + dev->core_index * 0x1000; - wldev = attach_cb(dev->id.manuf, dev->id.id, (ulong)mmio, dev, dev->irq); + wldev = attach_cb(dev->id.manuf, dev->id.id, (ulong)dev->io_addr, dev, dev->irq); if (!wldev) { |