Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26153
b: refs/heads/master
c: 48b950f
h: refs/heads/master
i:
  26151: df3cb7f
v: v3
  • Loading branch information
Daniel Ritz authored and Dominik Brodowski committed Apr 21, 2006
1 parent 45a573f commit 969f7a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 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: daaeb72bdf22873e6fa6497550c9e1d9a8825fea
refs/heads/master: 48b950ff241fca03a6969a5eb6a42a02722678d4
15 changes: 11 additions & 4 deletions trunk/drivers/pcmcia/pcmcia_resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ int pccard_get_configuration_info(struct pcmcia_socket *s,
if (!(s->state & SOCKET_PRESENT))
return CS_NO_CARD;

config->Function = p_dev->func;

#ifdef CONFIG_CARDBUS
if (s->state & SOCKET_CARDBUS) {
Expand All @@ -222,14 +221,22 @@ int pccard_get_configuration_info(struct pcmcia_socket *s,
config->AssignedIRQ = s->irq.AssignedIRQ;
if (config->AssignedIRQ)
config->Attributes |= CONF_ENABLE_IRQ;
config->BasePort1 = s->io[0].res->start;
config->NumPorts1 = s->io[0].res->end - config->BasePort1 + 1;
if (s->io[0].res) {
config->BasePort1 = s->io[0].res->start;
config->NumPorts1 = s->io[0].res->end - config->BasePort1 + 1;
}
}
return CS_SUCCESS;
}
#endif

c = (p_dev) ? p_dev->function_config : NULL;
if (p_dev) {
c = p_dev->function_config;
config->Function = p_dev->func;
} else {
c = NULL;
config->Function = 0;
}

if ((c == NULL) || !(c->state & CONFIG_LOCKED)) {
config->Attributes = 0;
Expand Down

0 comments on commit 969f7a3

Please sign in to comment.