[RFC PATCH 2/8] pcmcia: unload second device first

Dominik Brodowski linux at dominikbrodowski.net
Tue Apr 18 13:17:58 EDT 2006


Please review these patches which I inted to push upstream for 2.6.17 soon.
Thanks,
	Dominik

From: Komuro <komurojun-mbn at nifty.com>
Subject: [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 at nifty.com
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>

---

 drivers/pcmcia/ds.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

65ea13f41dc3fd2a404a33447d67f06c0ec116d3
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index ae10d1e..7582362 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -628,7 +628,7 @@ struct pcmcia_device * pcmcia_device_add
 		}
 
 	/* Add to the list in pcmcia_bus_socket */
-	list_add_tail(&p_dev->socket_device_list, &s->devices_list);
+	list_add(&p_dev->socket_device_list, &s->devices_list);
 
 	spin_unlock_irqrestore(&pcmcia_dev_list_lock, flags);
 
-- 
1.2.6





More information about the linux-pcmcia mailing list