Merge tag 'hsi-for-3.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
[cascardo/linux.git] / drivers / scsi / 3w-sas.c
index 6da6cec..2361772 100644 (file)
@@ -191,19 +191,6 @@ static ssize_t twl_show_stats(struct device *dev,
        return len;
 } /* End twl_show_stats() */
 
-/* This function will set a devices queue depth */
-static int twl_change_queue_depth(struct scsi_device *sdev, int queue_depth,
-                                 int reason)
-{
-       if (reason != SCSI_QDEPTH_DEFAULT)
-               return -EOPNOTSUPP;
-
-       if (queue_depth > TW_Q_LENGTH-2)
-               queue_depth = TW_Q_LENGTH-2;
-       scsi_adjust_queue_depth(sdev, MSG_ORDERED_TAG, queue_depth);
-       return queue_depth;
-} /* End twl_change_queue_depth() */
-
 /* stats sysfs attribute initializer */
 static struct device_attribute twl_host_stats_attr = {
        .attr = {
@@ -1590,7 +1577,7 @@ static struct scsi_host_template driver_template = {
        .queuecommand           = twl_scsi_queue,
        .eh_host_reset_handler  = twl_scsi_eh_reset,
        .bios_param             = twl_scsi_biosparam,
-       .change_queue_depth     = twl_change_queue_depth,
+       .change_queue_depth     = scsi_change_queue_depth,
        .can_queue              = TW_Q_LENGTH-2,
        .slave_configure        = twl_slave_configure,
        .this_id                = -1,