Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3811
b: refs/heads/master
c: 378a33a
h: refs/heads/master
i:
  3809: f32744e
  3807: 8d18986
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jun 28, 2005
1 parent 5b15f76 commit 1540e0d
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 3448139b41b9e3b8799eed7d427cd50789dadc3e
refs/heads/master: 378a33a686d457fa5a38d6ad134f5385a9cc7860
16 changes: 15 additions & 1 deletion trunk/drivers/pcmcia/cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -903,17 +903,29 @@ static int pcmcia_socket_hotplug(struct class_device *dev, char **envp,
}


static struct completion pcmcia_unload;

static void pcmcia_release_socket_class(struct class *data)
{
complete(&pcmcia_unload);
}


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


static int __init init_pcmcia_cs(void)
{
int ret = class_register(&pcmcia_socket_class);
int ret;

init_completion(&pcmcia_unload);
ret = class_register(&pcmcia_socket_class);
if (ret)
return (ret);
return class_interface_register(&pccard_sysfs_interface);
Expand All @@ -923,6 +935,8 @@ static void __exit exit_pcmcia_cs(void)
{
class_interface_unregister(&pccard_sysfs_interface);
class_unregister(&pcmcia_socket_class);

wait_for_completion(&pcmcia_unload);
}

subsys_initcall(init_pcmcia_cs);
Expand Down

0 comments on commit 1540e0d

Please sign in to comment.