diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-02-17 05:02:22 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-02-17 12:05:54 -0500 |
commit | d801c1409ef7d45339cbe8ac9de28ade6ed4699a (patch) | |
tree | b43b05716947bf8fa87689ae4f3ae6908552eedd /drivers | |
parent | d700518a0e4d17a47321414e5e487ed53f4ae752 (diff) |
pcmcia: remove useless msleep in ds.c
As this is the socket thread (pccardd) starting up, we do not have
anything to wait for in ds.c. Instead, wait the same amount of time
in pccardd to allow userspace to catch up and - possibly - execute
pcmcia-socket-startup.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/cs.c | 3 | ||||
-rw-r--r-- | drivers/pcmcia/ds.c | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/pcmcia/cs.c b/drivers/pcmcia/cs.c index 9a49c394f04f..e679e708db63 100644 --- a/drivers/pcmcia/cs.c +++ b/drivers/pcmcia/cs.c | |||
@@ -689,6 +689,9 @@ static int pccardd(void *__skt) | |||
689 | 689 | ||
690 | complete(&skt->thread_done); | 690 | complete(&skt->thread_done); |
691 | 691 | ||
692 | /* wait for userspace to catch up */ | ||
693 | msleep(250); | ||
694 | |||
692 | set_freezable(); | 695 | set_freezable(); |
693 | for (;;) { | 696 | for (;;) { |
694 | unsigned long flags; | 697 | unsigned long flags; |
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 93925f5908b8..0f98be4450b7 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -1356,12 +1356,6 @@ static int __devinit pcmcia_bus_add_socket(struct device *dev, | |||
1356 | return -ENODEV; | 1356 | return -ENODEV; |
1357 | } | 1357 | } |
1358 | 1358 | ||
1359 | /* | ||
1360 | * Ugly. But we want to wait for the socket threads to have started up. | ||
1361 | * We really should let the drivers themselves drive some of this.. | ||
1362 | */ | ||
1363 | msleep(250); | ||
1364 | |||
1365 | ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr); | 1359 | ret = sysfs_create_bin_file(&dev->kobj, &pccard_cis_attr); |
1366 | if (ret) { | 1360 | if (ret) { |
1367 | dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n"); | 1361 | dev_printk(KERN_ERR, dev, "PCMCIA registration failed\n"); |