Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351923
b: refs/heads/master
c: a35ab93
h: refs/heads/master
i:
  351921: 173372b
  351919: 20a2388
v: v3
  • Loading branch information
Nathan Hintz authored and John W. Linville committed Jan 14, 2013
1 parent 6b49df9 commit 7414bfa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: f6734627edea983b307593f71824d7ec2dd2625a
refs/heads/master: a35ab937cb27ec8c00b6f13cade93dc10e22b670
6 changes: 5 additions & 1 deletion trunk/drivers/bcma/driver_pci_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static int bcma_extpci_read_config(struct bcma_drv_pci *pc, unsigned int dev,
if (dev == 0) {
/* we support only two functions on device 0 */
if (func > 1)
return -EINVAL;
goto out;

/* accesses to config registers with offsets >= 256
* requires indirect access.
Expand Down Expand Up @@ -157,6 +157,10 @@ static int bcma_extpci_write_config(struct bcma_drv_pci *pc, unsigned int dev,
if (unlikely(len != 1 && len != 2 && len != 4))
goto out;
if (dev == 0) {
/* we support only two functions on device 0 */
if (func > 1)
goto out;

/* accesses to config registers with offsets >= 256
* requires indirect access.
*/
Expand Down

0 comments on commit 7414bfa

Please sign in to comment.