diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-02 06:08:22 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-17 12:30:07 -0500 |
commit | fa0b3bc504ff813cc05988bb30bbb6c6a0263eb4 (patch) | |
tree | 66dccd5903f60bce6f8b07cce478a4d5d6cf8bcf /drivers/pcmcia/rsrc_nonstatic.c | |
parent | cd2e18fe785082b132d960063df83a02acc9a4f2 (diff) |
pcmcia: do not meddle with already assigned resources
Do not release any iomem resources already in use.
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/rsrc_nonstatic.c')
-rw-r--r-- | drivers/pcmcia/rsrc_nonstatic.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c index 9b0dc433a8c3..4f93889301b6 100644 --- a/drivers/pcmcia/rsrc_nonstatic.c +++ b/drivers/pcmcia/rsrc_nonstatic.c | |||
@@ -727,13 +727,6 @@ static int adjust_memory(struct pcmcia_socket *s, unsigned int action, unsigned | |||
727 | break; | 727 | break; |
728 | case REMOVE_MANAGED_RESOURCE: | 728 | case REMOVE_MANAGED_RESOURCE: |
729 | ret = sub_interval(&data->mem_db, start, size); | 729 | ret = sub_interval(&data->mem_db, start, size); |
730 | if (!ret) { | ||
731 | struct pcmcia_socket *socket; | ||
732 | down_read(&pcmcia_socket_list_rwsem); | ||
733 | list_for_each_entry(socket, &pcmcia_socket_list, socket_list) | ||
734 | release_cis_mem(socket); | ||
735 | up_read(&pcmcia_socket_list_rwsem); | ||
736 | } | ||
737 | break; | 730 | break; |
738 | default: | 731 | default: |
739 | ret = -EINVAL; | 732 | ret = -EINVAL; |