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>
This commit is contained in:
parent
cd2e18fe78
commit
fa0b3bc504
1 changed files with 0 additions and 7 deletions
|
@ -727,13 +727,6 @@ static int adjust_memory(struct pcmcia_socket *s, unsigned int action, unsigned
|
|||
break;
|
||||
case REMOVE_MANAGED_RESOURCE:
|
||||
ret = sub_interval(&data->mem_db, start, size);
|
||||
if (!ret) {
|
||||
struct pcmcia_socket *socket;
|
||||
down_read(&pcmcia_socket_list_rwsem);
|
||||
list_for_each_entry(socket, &pcmcia_socket_list, socket_list)
|
||||
release_cis_mem(socket);
|
||||
up_read(&pcmcia_socket_list_rwsem);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
ret = -EINVAL;
|
||||
|
|
Loading…
Reference in a new issue