Skip to content

Commit

Permalink
[PATCH] pcmcia: unload second device first
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Komuro authored and Dominik Brodowski committed Apr 21, 2006
1 parent 6542729 commit 6171b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pcmcia/ds.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
}

/* 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);

Expand Down

0 comments on commit 6171b88

Please sign in to comment.