mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
[PATCH] pcmcia: fix multiple insertion of multifunction cards
The ordering of setting and clearing device_add_pending went wrong on some occasions, causing multifunction cards only to be handled correctly on the first insertion, not on subsequent ones. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
2b8d466937
commit
5d546f5432
1 changed files with 1 additions and 1 deletions
|
@ -589,8 +589,8 @@ static void pcmcia_delayed_add_pseudo_device(void *data)
|
||||||
static inline void pcmcia_add_pseudo_device(struct pcmcia_socket *s)
|
static inline void pcmcia_add_pseudo_device(struct pcmcia_socket *s)
|
||||||
{
|
{
|
||||||
if (!s->pcmcia_state.device_add_pending) {
|
if (!s->pcmcia_state.device_add_pending) {
|
||||||
schedule_work(&s->device_add);
|
|
||||||
s->pcmcia_state.device_add_pending = 1;
|
s->pcmcia_state.device_add_pending = 1;
|
||||||
|
schedule_work(&s->device_add);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue