ATTRIBUTE_GROUPS(hptiop_host);
 
-static int hptiop_slave_config(struct scsi_device *sdev)
+static int hptiop_device_configure(struct scsi_device *sdev,
+               struct queue_limits *lim)
 {
        if (sdev->type == TYPE_TAPE)
-               blk_queue_max_hw_sectors(sdev->request_queue, 8192);
-
+               lim->max_hw_sectors = 8192;
        return 0;
 }
 
        .emulated                   = 0,
        .proc_name                  = driver_name,
        .shost_groups               = hptiop_host_groups,
-       .slave_configure            = hptiop_slave_config,
+       .device_configure           = hptiop_device_configure,
        .this_id                    = -1,
        .change_queue_depth         = hptiop_adjust_disk_queue_depth,
        .cmd_size                   = sizeof(struct hpt_cmd_priv),