Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265374
b: refs/heads/master
c: 67a5c29
h: refs/heads/master
v: v3
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Aug 8, 2011
1 parent 2fa34db commit 32e9cfa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 982eee67dd703a37edc3532b85e3a4122b5eb90b
refs/heads/master: 67a5c29e1623edda5ff3f0355af533e72a245ad9
17 changes: 11 additions & 6 deletions trunk/drivers/bcma/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,10 @@ static int bcma_get_next_core(struct bcma_bus *bus, u32 __iomem **eromptr,
return 0;
}

int bcma_bus_scan(struct bcma_bus *bus)
static void bcma_init_bus(struct bcma_bus *bus)
{
u32 erombase;
u32 __iomem *eromptr, *eromend;

s32 tmp;

int err;

INIT_LIST_HEAD(&bus->cores);
bus->nr_cores = 0;

Expand All @@ -330,6 +325,16 @@ int bcma_bus_scan(struct bcma_bus *bus)
bus->chipinfo.id = (tmp & BCMA_CC_ID_ID) >> BCMA_CC_ID_ID_SHIFT;
bus->chipinfo.rev = (tmp & BCMA_CC_ID_REV) >> BCMA_CC_ID_REV_SHIFT;
bus->chipinfo.pkg = (tmp & BCMA_CC_ID_PKG) >> BCMA_CC_ID_PKG_SHIFT;
}

int bcma_bus_scan(struct bcma_bus *bus)
{
u32 erombase;
u32 __iomem *eromptr, *eromend;

int err;

bcma_init_bus(bus);

erombase = bcma_scan_read32(bus, 0, BCMA_CC_EROM);
eromptr = bus->mmio;
Expand Down

0 comments on commit 32e9cfa

Please sign in to comment.