mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-10-04 05:59:29 +03:00
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
This commit is contained in:
parent
6eab910f3b
commit
c701e89874
@ -88,7 +88,6 @@ static struct ssb_driver wl_glue_ssb_driver = {
|
|||||||
#ifdef CONFIG_BCMA
|
#ifdef CONFIG_BCMA
|
||||||
static int wl_glue_bcma_probe(struct bcma_device *dev)
|
static int wl_glue_bcma_probe(struct bcma_device *dev)
|
||||||
{
|
{
|
||||||
void *mmio;
|
|
||||||
void *wldev;
|
void *wldev;
|
||||||
|
|
||||||
if (!attach_cb)
|
if (!attach_cb)
|
||||||
@ -109,8 +108,7 @@ static int wl_glue_bcma_probe(struct bcma_device *dev)
|
|||||||
* 0x1000 = BCMA_CORE_SIZE
|
* 0x1000 = BCMA_CORE_SIZE
|
||||||
*/
|
*/
|
||||||
|
|
||||||
mmio = (void *) 0x18000000 + dev->core_index * 0x1000;
|
wldev = attach_cb(dev->id.manuf, dev->id.id, (ulong)dev->io_addr, dev, dev->irq);
|
||||||
wldev = attach_cb(dev->id.manuf, dev->id.id, (ulong)mmio, dev, dev->irq);
|
|
||||||
|
|
||||||
if (!wldev)
|
if (!wldev)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user