Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3743
b: refs/heads/master
c: 3ee1393
h: refs/heads/master
i:
  3741: f19a4bb
  3739: b878497
  3735: d4ba044
  3727: 371a4d4
  3711: 237f8c7
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jun 28, 2005
1 parent a3a0db2 commit d756042
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 840c2ac5d3c1d50e8a181e3f661da814e89c8cf8
refs/heads/master: 3ee13937525f6044d769b1a84d5db5669ac1959e
16 changes: 16 additions & 0 deletions trunk/drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1866,6 +1866,21 @@ int pcmcia_insert_card(struct pcmcia_socket *skt)
return ret;
} /* insert_card */

static int pcmcia_socket_hotplug(struct class_device *dev, char **envp,
int num_envp, char *buffer, int buffer_size)
{
struct pcmcia_socket *s = container_of(dev, struct pcmcia_socket, dev);
int i = 0, length = 0;

if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size,
&length, "SOCKET_NO=%u", s->sock))
return -ENOMEM;

envp[i] = NULL;

return 0;
}

/*======================================================================
OS-specific module glue goes here
Expand Down Expand Up @@ -1895,6 +1910,7 @@ EXPORT_SYMBOL(pcmcia_parse_events);

struct class pcmcia_socket_class = {
.name = "pcmcia_socket",
.hotplug = pcmcia_socket_hotplug,
.release = pcmcia_release_socket,
};
EXPORT_SYMBOL(pcmcia_socket_class);
Expand Down

0 comments on commit d756042

Please sign in to comment.