diff options
Diffstat (limited to 'drivers/pcmcia/yenta_socket.c')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 0e7aa8176692..15f716a7968a 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -1055,6 +1055,7 @@ static int yenta_dev_suspend (struct pci_dev *dev, pm_message_t state) | |||
1055 | pci_save_state(dev); | 1055 | pci_save_state(dev); |
1056 | pci_read_config_dword(dev, 16*4, &socket->saved_state[0]); | 1056 | pci_read_config_dword(dev, 16*4, &socket->saved_state[0]); |
1057 | pci_read_config_dword(dev, 17*4, &socket->saved_state[1]); | 1057 | pci_read_config_dword(dev, 17*4, &socket->saved_state[1]); |
1058 | pci_disable_device(dev); | ||
1058 | 1059 | ||
1059 | /* | 1060 | /* |
1060 | * Some laptops (IBM T22) do not like us putting the Cardbus | 1061 | * Some laptops (IBM T22) do not like us putting the Cardbus |
@@ -1078,6 +1079,8 @@ static int yenta_dev_resume (struct pci_dev *dev) | |||
1078 | pci_restore_state(dev); | 1079 | pci_restore_state(dev); |
1079 | pci_write_config_dword(dev, 16*4, socket->saved_state[0]); | 1080 | pci_write_config_dword(dev, 16*4, socket->saved_state[0]); |
1080 | pci_write_config_dword(dev, 17*4, socket->saved_state[1]); | 1081 | pci_write_config_dword(dev, 17*4, socket->saved_state[1]); |
1082 | pci_enable_device(dev); | ||
1083 | pci_set_master(dev); | ||
1081 | 1084 | ||
1082 | if (socket->type && socket->type->restore_state) | 1085 | if (socket->type && socket->type->restore_state) |
1083 | socket->type->restore_state(socket); | 1086 | socket->type->restore_state(socket); |