Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3741
b: refs/heads/master
c: 7925407
h: refs/heads/master
i:
  3739: b878497
v: v3
  • Loading branch information
Ivan Kokshaysky authored and Linus Torvalds committed Jun 28, 2005
1 parent b78a11a commit f19a4bb
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: 3c803e8e2f15d02c5ad0a3888eea2bbd31dc59c5
refs/heads/master: 7925407aa02653ba462b1d8b0b1229b99aee5411
6 changes: 5 additions & 1 deletion trunk/drivers/pcmcia/yenta_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,14 +549,18 @@ static void yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned typ
unsigned offset;
unsigned mask;

res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
/* Already allocated? */
if (res->parent)
return 0;

/* The granularity of the memory limit is 4kB, on IO it's 4 bytes */
mask = ~0xfff;
if (type & IORESOURCE_IO)
mask = ~3;

offset = 0x1c + 8*nr;
bus = socket->dev->subordinate;
res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
res->name = bus->name;
res->flags = type;
res->start = 0;
Expand Down

0 comments on commit f19a4bb

Please sign in to comment.