Commit dc470419 authored by Tejun Heo's avatar Tejun Heo Committed by Chris Wright

[PATCH] sata_via: add missing PM hooks

For some reason, sata_via is missing PM hooks.  Add them.  Spotted by
Jeroen Janssen <jeroen.janssen@gmail.com>.
Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Cc: Jeroen Janssen <jeroen.janssen@gmail.com>
Signed-off-by: default avatarChris Wright <chrisw@sous-sol.org>
parent c0aadfd9
...@@ -97,6 +97,10 @@ static struct pci_driver svia_pci_driver = { ...@@ -97,6 +97,10 @@ static struct pci_driver svia_pci_driver = {
.name = DRV_NAME, .name = DRV_NAME,
.id_table = svia_pci_tbl, .id_table = svia_pci_tbl,
.probe = svia_init_one, .probe = svia_init_one,
#ifdef CONFIG_PM
.suspend = ata_pci_device_suspend,
.resume = ata_pci_device_resume,
#endif
.remove = ata_pci_remove_one, .remove = ata_pci_remove_one,
}; };
...@@ -116,6 +120,10 @@ static struct scsi_host_template svia_sht = { ...@@ -116,6 +120,10 @@ static struct scsi_host_template svia_sht = {
.slave_configure = ata_scsi_slave_config, .slave_configure = ata_scsi_slave_config,
.slave_destroy = ata_scsi_slave_destroy, .slave_destroy = ata_scsi_slave_destroy,
.bios_param = ata_std_bios_param, .bios_param = ata_std_bios_param,
#ifdef CONFIG_PM
.suspend = ata_scsi_device_suspend,
.resume = ata_scsi_device_resume,
#endif
}; };
static const struct ata_port_operations vt6420_sata_ops = { static const struct ata_port_operations vt6420_sata_ops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment