aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/megaraid/megaraid_sas_base.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_sas_base.c')
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 69a9dd6ae04c..f05580e693d0 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -2591,17 +2591,6 @@ megasas_service_aen(struct megasas_instance *instance, struct megasas_cmd *cmd)
2591 } 2591 }
2592} 2592}
2593 2593
2594static int megasas_change_queue_depth(struct scsi_device *sdev,
2595 int queue_depth, int reason)
2596{
2597 if (reason != SCSI_QDEPTH_DEFAULT)
2598 return -EOPNOTSUPP;
2599
2600 scsi_adjust_queue_depth(sdev, queue_depth);
2601
2602 return queue_depth;
2603}
2604
2605static ssize_t 2594static ssize_t
2606megasas_fw_crash_buffer_store(struct device *cdev, 2595megasas_fw_crash_buffer_store(struct device *cdev,
2607 struct device_attribute *attr, const char *buf, size_t count) 2596 struct device_attribute *attr, const char *buf, size_t count)
@@ -2766,7 +2755,7 @@ static struct scsi_host_template megasas_template = {
2766 .shost_attrs = megaraid_host_attrs, 2755 .shost_attrs = megaraid_host_attrs,
2767 .bios_param = megasas_bios_param, 2756 .bios_param = megasas_bios_param,
2768 .use_clustering = ENABLE_CLUSTERING, 2757 .use_clustering = ENABLE_CLUSTERING,
2769 .change_queue_depth = megasas_change_queue_depth, 2758 .change_queue_depth = scsi_change_queue_depth,
2770 .no_write_same = 1, 2759 .no_write_same = 1,
2771}; 2760};
2772 2761