]> err.no Git - linux-2.6/commitdiff
libata: add missing PM callbacks
authorTejun Heo <htejun@gmail.com>
Fri, 2 Mar 2007 08:30:01 +0000 (17:30 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 2 Mar 2007 23:27:34 +0000 (18:27 -0500)
Some LLDs were missing scsi device PM callbacks while having host/port
suspend support.  Add missing ones.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_jmicron.c
drivers/ata/pata_mpc52xx.c
drivers/ata/pata_sil680.c

index 47d0f94fd7929e7a0fa675225d9865b7a65fbaea..7ede3232e928eb02cbca007437a49458ffc9a7ae 100644 (file)
@@ -137,6 +137,10 @@ static struct scsi_host_template jmicron_sht = {
        .slave_destroy          = ata_scsi_slave_destroy,
        /* Use standard CHS mapping rules */
        .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 jmicron_ops = {
index 29e1809e5ecf3ce9aea4c7899d3457b64ad4716b..f5d88729ca79aba58ded4379d3a54172877277ad 100644 (file)
@@ -280,6 +280,10 @@ static struct scsi_host_template mpc52xx_ata_sht = {
        .dma_boundary           = ATA_DMA_BOUNDARY,
        .slave_configure        = ata_scsi_slave_config,
        .bios_param             = ata_std_bios_param,
+#ifdef CONFIG_PM
+       .suspend                = ata_scsi_device_suspend,
+       .resume                 = ata_scsi_device_resume,
+#endif
 };
 
 static struct ata_port_operations mpc52xx_ata_port_ops = {
index 1cb67b221c2835332c2ffd1857f66af90bd9b3c2..48eb5e538996db80398fef3bf9e2f951c5d576ba 100644 (file)
@@ -236,6 +236,10 @@ static struct scsi_host_template sil680_sht = {
        .slave_configure        = ata_scsi_slave_config,
        .slave_destroy          = ata_scsi_slave_destroy,
        .bios_param             = ata_std_bios_param,
+#ifdef CONFIG_PM
+       .suspend                = ata_scsi_device_suspend,
+       .resume                 = ata_scsi_device_resume,
+#endif
 };
 
 static struct ata_port_operations sil680_port_ops = {