|
19 | 19 |
|
20 | 20 | #include <linux/compat.h> |
21 | 21 | #include <linux/blkdev.h> |
22 | | -#include <linux/blk-mq-pci.h> |
23 | 22 | #include <linux/completion.h> |
24 | 23 | #include <linux/init.h> |
25 | 24 | #include <linux/interrupt.h> |
@@ -505,15 +504,6 @@ static int aac_slave_configure(struct scsi_device *sdev) |
505 | 504 | return 0; |
506 | 505 | } |
507 | 506 |
|
508 | | -static void aac_map_queues(struct Scsi_Host *shost) |
509 | | -{ |
510 | | - struct aac_dev *aac = (struct aac_dev *)shost->hostdata; |
511 | | - |
512 | | - blk_mq_pci_map_queues(&shost->tag_set.map[HCTX_TYPE_DEFAULT], |
513 | | - aac->pdev, 0); |
514 | | - aac->use_map_queue = true; |
515 | | -} |
516 | | - |
517 | 507 | /** |
518 | 508 | * aac_change_queue_depth - alter queue depths |
519 | 509 | * @sdev: SCSI device we are considering |
@@ -1498,7 +1488,6 @@ static const struct scsi_host_template aac_driver_template = { |
1498 | 1488 | .bios_param = aac_biosparm, |
1499 | 1489 | .shost_groups = aac_host_groups, |
1500 | 1490 | .slave_configure = aac_slave_configure, |
1501 | | - .map_queues = aac_map_queues, |
1502 | 1491 | .change_queue_depth = aac_change_queue_depth, |
1503 | 1492 | .sdev_groups = aac_dev_groups, |
1504 | 1493 | .eh_abort_handler = aac_eh_abort, |
@@ -1786,8 +1775,6 @@ static int aac_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) |
1786 | 1775 | shost->max_lun = AAC_MAX_LUN; |
1787 | 1776 |
|
1788 | 1777 | pci_set_drvdata(pdev, shost); |
1789 | | - shost->nr_hw_queues = aac->max_msix; |
1790 | | - shost->host_tagset = 1; |
1791 | 1778 |
|
1792 | 1779 | error = scsi_add_host(shost, &pdev->dev); |
1793 | 1780 | if (error) |
@@ -1919,7 +1906,6 @@ static void aac_remove_one(struct pci_dev *pdev) |
1919 | 1906 | struct aac_dev *aac = (struct aac_dev *)shost->hostdata; |
1920 | 1907 |
|
1921 | 1908 | aac_cancel_rescan_worker(aac); |
1922 | | - aac->use_map_queue = false; |
1923 | 1909 | scsi_remove_host(shost); |
1924 | 1910 |
|
1925 | 1911 | __aac_shutdown(aac); |
|
0 commit comments