[PATCH] libata: add missing sht->slave_destroy
authorTejun Heo <htejun@gmail.com>
Wed, 29 Nov 2006 03:10:46 +0000 (12:10 +0900)
committerTejun Heo <htejun@gmail.com>
Sun, 3 Dec 2006 08:56:22 +0000 (17:56 +0900)
Add missing sht->slave_destroy.  Most drivers received this fix in
didn't.  Fix those four drives.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/ata/pata_ixp4xx_cf.c
drivers/ata/pata_marvell.c
drivers/ata/pata_platform.c
drivers/ata/pata_winbond.c

index d2268bfe6f5584b71a51b2ecd04a6fec268a09e7..14c6a2daf52e63731ebc177c215985cfcdf5fb52 100644 (file)
@@ -117,6 +117,7 @@ static struct scsi_host_template ixp4xx_sht = {
        .proc_name              = DRV_NAME,
        .dma_boundary           = ATA_DMA_BOUNDARY,
        .slave_configure        = ata_scsi_slave_config,
+       .slave_destroy          = ata_scsi_slave_destroy,
        .bios_param             = ata_std_bios_param,
 };
 
index 25f7a79a8e251aa96d309f832baa2e6c47283b50..3f53be4607a089e6f08924c365defe41fbf25355 100644 (file)
@@ -101,6 +101,7 @@ static struct scsi_host_template marvell_sht = {
        .proc_name              = DRV_NAME,
        .dma_boundary           = ATA_DMA_BOUNDARY,
        .slave_configure        = ata_scsi_slave_config,
+       .slave_destroy          = ata_scsi_slave_destroy,
        /* Use standard CHS mapping rules */
        .bios_param             = ata_std_bios_param,
        .resume                 = ata_scsi_device_resume,
index 63d6687f0ba9e7b38c4da23e5ccbc4e41bc39fd3..5ff74e4ce59093dbdc02d6d079c5cd117840d9fa 100644 (file)
@@ -78,6 +78,7 @@ static struct scsi_host_template pata_platform_sht = {
        .proc_name              = DRV_NAME,
        .dma_boundary           = ATA_DMA_BOUNDARY,
        .slave_configure        = ata_scsi_slave_config,
+       .slave_destroy          = ata_scsi_slave_destroy,
        .bios_param             = ata_std_bios_param,
 };
 
index 48941d0757e95d2981796ed93d61898bf7613215..b02ad1d3afed442c8b56a396a41523e61ea32c1a 100644 (file)
@@ -133,6 +133,7 @@ static struct scsi_host_template winbond_sht = {
        .proc_name              = DRV_NAME,
        .dma_boundary           = ATA_DMA_BOUNDARY,
        .slave_configure        = ata_scsi_slave_config,
+       .slave_destroy          = ata_scsi_slave_destroy,
        .bios_param             = ata_std_bios_param,
 };