aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorDaniel Ritz <daniel.ritz@gmx.ch>2005-07-28 04:07:28 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-28 11:39:01 -0400
commitd8c4b4195c7d664baf296818bf756775149232d3 (patch)
tree0ca8d557b9bdb44836255ec72d1c4273db50bcce /drivers/pcmcia
parenta1b274fbe3f00469fb8a68806469ec7746c7f648 (diff)
[PATCH] yenta: free_irq() on suspend.
Resume doesn't seem to work without. Signed-off-by: Daniel Ritz <daniel.ritz@gmx.ch> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/yenta_socket.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c
index 6837491f021c..744e469a9eda 100644
--- a/drivers/pcmcia/yenta_socket.c
+++ b/drivers/pcmcia/yenta_socket.c
@@ -1107,6 +1107,8 @@ static int yenta_dev_suspend (struct pci_dev *dev, pm_message_t state)
1107 pci_read_config_dword(dev, 17*4, &socket->saved_state[1]); 1107 pci_read_config_dword(dev, 17*4, &socket->saved_state[1]);
1108 pci_disable_device(dev); 1108 pci_disable_device(dev);
1109 1109
1110 free_irq(dev->irq, socket);
1111
1110 /* 1112 /*
1111 * Some laptops (IBM T22) do not like us putting the Cardbus 1113 * Some laptops (IBM T22) do not like us putting the Cardbus
1112 * bridge into D3. At a guess, some other laptop will 1114 * bridge into D3. At a guess, some other laptop will
@@ -1132,6 +1134,13 @@ static int yenta_dev_resume (struct pci_dev *dev)
1132 pci_enable_device(dev); 1134 pci_enable_device(dev);
1133 pci_set_master(dev); 1135 pci_set_master(dev);
1134 1136
1137 if (socket->cb_irq)
1138 if (request_irq(socket->cb_irq, yenta_interrupt,
1139 SA_SHIRQ, "yenta", socket)) {
1140 printk(KERN_WARNING "Yenta: request_irq() failed on resume!\n");
1141 socket->cb_irq = 0;
1142 }
1143
1135 if (socket->type && socket->type->restore_state) 1144 if (socket->type && socket->type->restore_state)
1136 socket->type->restore_state(socket); 1145 socket->type->restore_state(socket);
1137 } 1146 }