diff options
author | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-12 17:21:56 -0400 |
commit | 5028770a42e7bc4d15791a44c28f0ad539323807 (patch) | |
tree | 74800e35129775413c13ce7caf036ca19e3ce56c /drivers/pcmcia/yenta_socket.c | |
parent | 9f02d6b7b43d46a74dd385f06090104ecd0fb807 (diff) | |
parent | d8683a0cb5d09cb7f19feefa708424a84577e68f (diff) |
[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
Signed-off-by: Len Brown <len.brown@intel.com>
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); |