]> Pileus Git - ~andy/linux/blobdiff - drivers/ata/sata_sil.c
devres: release resources on device_del()
[~andy/linux] / drivers / ata / sata_sil.c
index aaff357db5f52b01eea9f16c3781e9e61e3466bc..917b7ea4ef7c203b0bd4ebc5abd83aad5ceb4420 100644 (file)
@@ -46,7 +46,7 @@
 #include <linux/libata.h>
 
 #define DRV_NAME       "sata_sil"
-#define DRV_VERSION    "2.0"
+#define DRV_VERSION    "2.1"
 
 enum {
        SIL_MMIO_BAR            = 5,
@@ -183,8 +183,10 @@ static struct scsi_host_template sil_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 const struct ata_port_operations sil_ops = {