[SCSI] libsas: kill sas_slave_destroy
authorDan Williams <dan.j.williams@intel.com>
Fri, 18 Nov 2011 01:59:46 +0000 (17:59 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 19:36:36 +0000 (13:36 -0600)
Per commit 3e4ec344 "libata: kill ATA_FLAG_DISABLED" needing to set
ATA_DEV_NONE is a holdover from before libsas converted to the
"new-style" ata-eh.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/aic94xx/aic94xx_init.c
drivers/scsi/isci/init.c
drivers/scsi/libsas/sas_scsi_host.c
drivers/scsi/mvsas/mv_init.c
drivers/scsi/pm8001/pm8001_init.c
include/scsi/libsas.h

index d5ff142c93a2c9a0bdac1e768fb9748be657ca09..8db4e727628a5d04f58eaf2917eb6cf749a7c22a 100644 (file)
@@ -68,7 +68,6 @@ static struct scsi_host_template aic94xx_sht = {
        .queuecommand           = sas_queuecommand,
        .target_alloc           = sas_target_alloc,
        .slave_configure        = sas_slave_configure,
-       .slave_destroy          = sas_slave_destroy,
        .scan_finished          = asd_scan_finished,
        .scan_start             = asd_scan_start,
        .change_queue_depth     = sas_change_queue_depth,
index 6b911e0aea3f90b829615424d6393c4a444f84e1..7ba236e9fab2d54981eef9b9c54b20aefd9c7964 100644 (file)
@@ -154,7 +154,6 @@ static struct scsi_host_template isci_sht = {
        .queuecommand                   = sas_queuecommand,
        .target_alloc                   = sas_target_alloc,
        .slave_configure                = sas_slave_configure,
-       .slave_destroy                  = sas_slave_destroy,
        .scan_finished                  = isci_host_scan_finished,
        .scan_start                     = isci_host_scan_start,
        .change_queue_depth             = sas_change_queue_depth,
index b6e233d9a0a15f98bb7a8760fbe5ab0102b6ebaf..e95e5e17bd88ab205b07ee0fc57b832debf86594 100644 (file)
@@ -797,14 +797,6 @@ int sas_slave_configure(struct scsi_device *scsi_dev)
        return 0;
 }
 
-void sas_slave_destroy(struct scsi_device *scsi_dev)
-{
-       struct domain_device *dev = sdev_to_domain_dev(scsi_dev);
-
-       if (dev_is_sata(dev))
-               sas_to_ata_dev(dev)->class = ATA_DEV_NONE;
-}
-
 int sas_change_queue_depth(struct scsi_device *sdev, int depth, int reason)
 {
        struct domain_device *dev = sdev_to_domain_dev(sdev);
@@ -1108,7 +1100,6 @@ EXPORT_SYMBOL_GPL(sas_request_addr);
 EXPORT_SYMBOL_GPL(sas_queuecommand);
 EXPORT_SYMBOL_GPL(sas_target_alloc);
 EXPORT_SYMBOL_GPL(sas_slave_configure);
-EXPORT_SYMBOL_GPL(sas_slave_destroy);
 EXPORT_SYMBOL_GPL(sas_change_queue_depth);
 EXPORT_SYMBOL_GPL(sas_change_queue_type);
 EXPORT_SYMBOL_GPL(sas_bios_param);
index 6f589195746c3e7ba1774c6084e9753c9f3bd783..d45878b3125491c93390eddccc7d1db40f5a44bb 100644 (file)
@@ -60,7 +60,6 @@ static struct scsi_host_template mvs_sht = {
        .queuecommand           = sas_queuecommand,
        .target_alloc           = sas_target_alloc,
        .slave_configure        = sas_slave_configure,
-       .slave_destroy          = sas_slave_destroy,
        .scan_finished          = mvs_scan_finished,
        .scan_start             = mvs_scan_start,
        .change_queue_depth     = sas_change_queue_depth,
index c21a2163f9f6eb915072c1210b939dfeb29b479a..bd165ea619190622f218a50e4972ef1ff7a24b83 100644 (file)
@@ -62,7 +62,6 @@ static struct scsi_host_template pm8001_sht = {
        .queuecommand           = sas_queuecommand,
        .target_alloc           = sas_target_alloc,
        .slave_configure        = sas_slave_configure,
-       .slave_destroy          = sas_slave_destroy,
        .scan_finished          = pm8001_scan_finished,
        .scan_start             = pm8001_scan_start,
        .change_queue_depth     = sas_change_queue_depth,
index 6e64b038c649aef1667e213d38c75a7160d2e5cb..2b14348336d6e28ad706b5f6326f3cd6ffa78a07 100644 (file)
@@ -625,7 +625,6 @@ extern int sas_queuecommand(struct Scsi_Host * ,struct scsi_cmnd *);
 extern int sas_target_alloc(struct scsi_target *);
 extern int sas_slave_alloc(struct scsi_device *);
 extern int sas_slave_configure(struct scsi_device *);
-extern void sas_slave_destroy(struct scsi_device *);
 extern int sas_change_queue_depth(struct scsi_device *, int new_depth,
                                  int reason);
 extern int sas_change_queue_type(struct scsi_device *, int qt);