diff options
author | Komuro <komurojun-mbn@nifty.com> | 2006-04-02 04:39:27 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-04-21 18:49:13 -0400 |
commit | 6171b88b436ceb91d602ca570e63a0dcdd56648e (patch) | |
tree | 75383472f24702944f853e483002174c5bb528f8 | |
parent | 6542729809baa3674b16a76a68346f449266c6dd (diff) |
[PATCH] pcmcia: unload second device first
Use list_add instead of list_add_tail for pcmcia_device_add
so that second device of multi-function-card will be unloaded first.
Signed-off-by: komurojun-mbn@nifty.com
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index ae10d1eed65e..7582362a38c3 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -628,7 +628,7 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f | |||
628 | } | 628 | } |
629 | 629 | ||
630 | /* Add to the list in pcmcia_bus_socket */ | 630 | /* Add to the list in pcmcia_bus_socket */ |
631 | list_add_tail(&p_dev->socket_device_list, &s->devices_list); | 631 | list_add(&p_dev->socket_device_list, &s->devices_list); |
632 | 632 | ||
633 | spin_unlock_irqrestore(&pcmcia_dev_list_lock, flags); | 633 | spin_unlock_irqrestore(&pcmcia_dev_list_lock, flags); |
634 | 634 | ||