diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2012-12-02 16:07:43 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2012-12-02 16:07:43 +0000 |
commit | 19d0fc1c100eeb4be3d9a06ce9c70a6c23ba1933 (patch) | |
tree | eb014c58110310b39e9017cfc4ba234867fa5439 /package/broadcom-wl/src/glue | |
parent | 7a620c3b9634d7c9e744838cf3e54c3307a31f23 (diff) | |
download | upstream-19d0fc1c100eeb4be3d9a06ce9c70a6c23ba1933.tar.gz upstream-19d0fc1c100eeb4be3d9a06ce9c70a6c23ba1933.tar.bz2 upstream-19d0fc1c100eeb4be3d9a06ce9c70a6c23ba1933.zip |
broadcom-wl: get the mmio address directly from the struct if bcma is used.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34452 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/broadcom-wl/src/glue')
-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 0504232a96..bf009e5bbe 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) { |