aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-11-15 19:47:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-15 19:47:22 -0500
commit9073e1a804c3096eda84ee7cbf11d1f174236c75 (patch)
tree2f1b488b606bc03f8c5ce133f9158196fef07cd2 /drivers/scsi
parent4937e2a6f939a41bf811378e80d71f68aa0950c6 (diff)
parent2bb9936beac2eed0c1ed907f83694bc752e159d9 (diff)
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
Pull trivial tree updates from Jiri Kosina: "Usual earth-shaking, news-breaking, rocket science pile from trivial.git" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (23 commits) doc: usb: Fix typo in Documentation/usb/gadget_configs.txt doc: add missing files to timers/00-INDEX timekeeping: Fix some trivial typos in comments mm: Fix some trivial typos in comments irq: Fix some trivial typos in comments NUMA: fix typos in Kconfig help text mm: update 00-INDEX doc: Documentation/DMA-attributes.txt fix typo DRM: comment: `halve' -> `half' Docs: Kconfig: `devlopers' -> `developers' doc: typo on word accounting in kprobes.c in mutliple architectures treewide: fix "usefull" typo treewide: fix "distingush" typo mm/Kconfig: Grammar s/an/a/ kexec: Typo s/the/then/ Documentation/kvm: Update cpuid documentation for steal time and pv eoi treewide: Fix common typo in "identify" __page_to_pfn: Fix typo in comment Correct some typos for word frequency clk: fixed-factor: Fix a trivial typo ...
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_hba.c1
-rw-r--r--drivers/scsi/atp870u.c2
-rw-r--r--drivers/scsi/bfa/bfad.c1
-rw-r--r--drivers/scsi/bnx2i/bnx2i_hwi.c16
-rw-r--r--drivers/scsi/bnx2i/bnx2i_iscsi.c14
-rw-r--r--drivers/scsi/csiostor/csio_init.c2
-rw-r--r--drivers/scsi/dc395x.c1
-rw-r--r--drivers/scsi/fnic/fnic_main.c1
-rw-r--r--drivers/scsi/gdth.c2
-rw-r--r--drivers/scsi/hpsa.c1
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c3
-rw-r--r--drivers/scsi/megaraid/megaraid_mbox.c6
-rw-r--r--drivers/scsi/megaraid/megaraid_sas_base.c5
-rw-r--r--drivers/scsi/mvsas/mv_init.c1
-rw-r--r--drivers/scsi/mvsas/mv_sas.c2
-rw-r--r--drivers/scsi/mvumi.c2
-rw-r--r--drivers/scsi/ncr53c8xx.c2
-rw-r--r--drivers/scsi/pm8001/pm8001_init.c1
-rw-r--r--drivers/scsi/pmcraid.c1
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c1
-rw-r--r--drivers/scsi/qla4xxx/ql4_os.c1
-rw-r--r--drivers/scsi/stex.c2
-rw-r--r--drivers/scsi/sym53c8xx_2/sym_glue.h2
-rw-r--r--drivers/scsi/tmscsim.c1
-rw-r--r--drivers/scsi/ufs/ufshcd-pci.c1
-rw-r--r--drivers/scsi/vmw_pvscsi.c2
26 files changed, 18 insertions, 56 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 33c52bc2c7b4..97fd450aff09 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -1035,7 +1035,6 @@ static void arcmsr_remove(struct pci_dev *pdev)
1035 pci_release_regions(pdev); 1035 pci_release_regions(pdev);
1036 scsi_host_put(host); 1036 scsi_host_put(host);
1037 pci_disable_device(pdev); 1037 pci_disable_device(pdev);
1038 pci_set_drvdata(pdev, NULL);
1039} 1038}
1040 1039
1041static void arcmsr_shutdown(struct pci_dev *pdev) 1040static void arcmsr_shutdown(struct pci_dev *pdev)
diff --git a/drivers/scsi/atp870u.c b/drivers/scsi/atp870u.c
index 15a629d8ed08..a795d81ef875 100644
--- a/drivers/scsi/atp870u.c
+++ b/drivers/scsi/atp870u.c
@@ -3144,8 +3144,6 @@ static void atp870u_remove (struct pci_dev *pdev)
3144 atp870u_free_tables(pshost); 3144 atp870u_free_tables(pshost);
3145 printk(KERN_INFO "scsi_host_put : %p\n",pshost); 3145 printk(KERN_INFO "scsi_host_put : %p\n",pshost);
3146 scsi_host_put(pshost); 3146 scsi_host_put(pshost);
3147 printk(KERN_INFO "pci_set_drvdata : %p\n",pdev);
3148 pci_set_drvdata(pdev, NULL);
3149} 3147}
3150MODULE_LICENSE("GPL"); 3148MODULE_LICENSE("GPL");
3151 3149
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c
index 7591fa4e28bb..fc80a325a1e6 100644
--- a/drivers/scsi/bfa/bfad.c
+++ b/drivers/scsi/bfa/bfad.c
@@ -804,7 +804,6 @@ bfad_pci_uninit(struct pci_dev *pdev, struct bfad_s *bfad)
804 /* Disable PCIE Advanced Error Recovery (AER) */ 804 /* Disable PCIE Advanced Error Recovery (AER) */
805 pci_disable_pcie_error_reporting(pdev); 805 pci_disable_pcie_error_reporting(pdev);
806 pci_disable_device(pdev); 806 pci_disable_device(pdev);
807 pci_set_drvdata(pdev, NULL);
808} 807}
809 808
810bfa_status_t 809bfa_status_t
diff --git a/drivers/scsi/bnx2i/bnx2i_hwi.c b/drivers/scsi/bnx2i/bnx2i_hwi.c
index 5be718c241c4..e4cf23df4b4f 100644
--- a/drivers/scsi/bnx2i/bnx2i_hwi.c
+++ b/drivers/scsi/bnx2i/bnx2i_hwi.c
@@ -126,7 +126,7 @@ static void bnx2i_iscsi_license_error(struct bnx2i_hba *hba, u32 error_code)
126 126
127/** 127/**
128 * bnx2i_arm_cq_event_coalescing - arms CQ to enable EQ notification 128 * bnx2i_arm_cq_event_coalescing - arms CQ to enable EQ notification
129 * @ep: endpoint (transport indentifier) structure 129 * @ep: endpoint (transport identifier) structure
130 * @action: action, ARM or DISARM. For now only ARM_CQE is used 130 * @action: action, ARM or DISARM. For now only ARM_CQE is used
131 * 131 *
132 * Arm'ing CQ will enable chip to generate global EQ events inorder to interrupt 132 * Arm'ing CQ will enable chip to generate global EQ events inorder to interrupt
@@ -756,7 +756,7 @@ void bnx2i_send_cmd_cleanup_req(struct bnx2i_hba *hba, struct bnx2i_cmd *cmd)
756/** 756/**
757 * bnx2i_send_conn_destroy - initiates iscsi connection teardown process 757 * bnx2i_send_conn_destroy - initiates iscsi connection teardown process
758 * @hba: adapter structure pointer 758 * @hba: adapter structure pointer
759 * @ep: endpoint (transport indentifier) structure 759 * @ep: endpoint (transport identifier) structure
760 * 760 *
761 * this routine prepares and posts CONN_OFLD_REQ1/2 KWQE to initiate 761 * this routine prepares and posts CONN_OFLD_REQ1/2 KWQE to initiate
762 * iscsi connection context clean-up process 762 * iscsi connection context clean-up process
@@ -791,7 +791,7 @@ int bnx2i_send_conn_destroy(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep)
791/** 791/**
792 * bnx2i_570x_send_conn_ofld_req - initiates iscsi conn context setup process 792 * bnx2i_570x_send_conn_ofld_req - initiates iscsi conn context setup process
793 * @hba: adapter structure pointer 793 * @hba: adapter structure pointer
794 * @ep: endpoint (transport indentifier) structure 794 * @ep: endpoint (transport identifier) structure
795 * 795 *
796 * 5706/5708/5709 specific - prepares and posts CONN_OFLD_REQ1/2 KWQE 796 * 5706/5708/5709 specific - prepares and posts CONN_OFLD_REQ1/2 KWQE
797 */ 797 */
@@ -851,7 +851,7 @@ static int bnx2i_570x_send_conn_ofld_req(struct bnx2i_hba *hba,
851/** 851/**
852 * bnx2i_5771x_send_conn_ofld_req - initiates iscsi connection context creation 852 * bnx2i_5771x_send_conn_ofld_req - initiates iscsi connection context creation
853 * @hba: adapter structure pointer 853 * @hba: adapter structure pointer
854 * @ep: endpoint (transport indentifier) structure 854 * @ep: endpoint (transport identifier) structure
855 * 855 *
856 * 57710 specific - prepares and posts CONN_OFLD_REQ1/2 KWQE 856 * 57710 specific - prepares and posts CONN_OFLD_REQ1/2 KWQE
857 */ 857 */
@@ -920,7 +920,7 @@ static int bnx2i_5771x_send_conn_ofld_req(struct bnx2i_hba *hba,
920 * bnx2i_send_conn_ofld_req - initiates iscsi connection context setup process 920 * bnx2i_send_conn_ofld_req - initiates iscsi connection context setup process
921 * 921 *
922 * @hba: adapter structure pointer 922 * @hba: adapter structure pointer
923 * @ep: endpoint (transport indentifier) structure 923 * @ep: endpoint (transport identifier) structure
924 * 924 *
925 * this routine prepares and posts CONN_OFLD_REQ1/2 KWQE 925 * this routine prepares and posts CONN_OFLD_REQ1/2 KWQE
926 */ 926 */
@@ -939,7 +939,7 @@ int bnx2i_send_conn_ofld_req(struct bnx2i_hba *hba, struct bnx2i_endpoint *ep)
939 939
940/** 940/**
941 * setup_qp_page_tables - iscsi QP page table setup function 941 * setup_qp_page_tables - iscsi QP page table setup function
942 * @ep: endpoint (transport indentifier) structure 942 * @ep: endpoint (transport identifier) structure
943 * 943 *
944 * Sets up page tables for SQ/RQ/CQ, 1G/sec (5706/5708/5709) devices requires 944 * Sets up page tables for SQ/RQ/CQ, 1G/sec (5706/5708/5709) devices requires
945 * 64-bit address in big endian format. Whereas 10G/sec (57710) requires 945 * 64-bit address in big endian format. Whereas 10G/sec (57710) requires
@@ -1046,7 +1046,7 @@ static void setup_qp_page_tables(struct bnx2i_endpoint *ep)
1046/** 1046/**
1047 * bnx2i_alloc_qp_resc - allocates required resources for QP. 1047 * bnx2i_alloc_qp_resc - allocates required resources for QP.
1048 * @hba: adapter structure pointer 1048 * @hba: adapter structure pointer
1049 * @ep: endpoint (transport indentifier) structure 1049 * @ep: endpoint (transport identifier) structure
1050 * 1050 *
1051 * Allocate QP (transport layer for iSCSI connection) resources, DMA'able 1051 * Allocate QP (transport layer for iSCSI connection) resources, DMA'able
1052 * memory for SQ/RQ/CQ and page tables. EP structure elements such 1052 * memory for SQ/RQ/CQ and page tables. EP structure elements such
@@ -1191,7 +1191,7 @@ mem_alloc_err:
1191/** 1191/**
1192 * bnx2i_free_qp_resc - free memory resources held by QP 1192 * bnx2i_free_qp_resc - free memory resources held by QP
1193 * @hba: adapter structure pointer 1193 * @hba: adapter structure pointer
1194 * @ep: endpoint (transport indentifier) structure 1194 * @ep: endpoint (transport identifier) structure
1195 * 1195 *
1196 * Free QP resources - SQ/RQ/CQ memory and page tables. 1196 * Free QP resources - SQ/RQ/CQ memory and page tables.
1197 */ 1197 */
diff --git a/drivers/scsi/bnx2i/bnx2i_iscsi.c b/drivers/scsi/bnx2i/bnx2i_iscsi.c
index fabeb88602ac..854dad7d5b03 100644
--- a/drivers/scsi/bnx2i/bnx2i_iscsi.c
+++ b/drivers/scsi/bnx2i/bnx2i_iscsi.c
@@ -596,7 +596,7 @@ void bnx2i_drop_session(struct iscsi_cls_session *cls_session)
596/** 596/**
597 * bnx2i_ep_destroy_list_add - add an entry to EP destroy list 597 * bnx2i_ep_destroy_list_add - add an entry to EP destroy list
598 * @hba: pointer to adapter instance 598 * @hba: pointer to adapter instance
599 * @ep: pointer to endpoint (transport indentifier) structure 599 * @ep: pointer to endpoint (transport identifier) structure
600 * 600 *
601 * EP destroy queue manager 601 * EP destroy queue manager
602 */ 602 */
@@ -613,7 +613,7 @@ static int bnx2i_ep_destroy_list_add(struct bnx2i_hba *hba,
613 * bnx2i_ep_destroy_list_del - add an entry to EP destroy list 613 * bnx2i_ep_destroy_list_del - add an entry to EP destroy list
614 * 614 *
615 * @hba: pointer to adapter instance 615 * @hba: pointer to adapter instance
616 * @ep: pointer to endpoint (transport indentifier) structure 616 * @ep: pointer to endpoint (transport identifier) structure
617 * 617 *
618 * EP destroy queue manager 618 * EP destroy queue manager
619 */ 619 */
@@ -630,7 +630,7 @@ static int bnx2i_ep_destroy_list_del(struct bnx2i_hba *hba,
630/** 630/**
631 * bnx2i_ep_ofld_list_add - add an entry to ep offload pending list 631 * bnx2i_ep_ofld_list_add - add an entry to ep offload pending list
632 * @hba: pointer to adapter instance 632 * @hba: pointer to adapter instance
633 * @ep: pointer to endpoint (transport indentifier) structure 633 * @ep: pointer to endpoint (transport identifier) structure
634 * 634 *
635 * pending conn offload completion queue manager 635 * pending conn offload completion queue manager
636 */ 636 */
@@ -646,7 +646,7 @@ static int bnx2i_ep_ofld_list_add(struct bnx2i_hba *hba,
646/** 646/**
647 * bnx2i_ep_ofld_list_del - add an entry to ep offload pending list 647 * bnx2i_ep_ofld_list_del - add an entry to ep offload pending list
648 * @hba: pointer to adapter instance 648 * @hba: pointer to adapter instance
649 * @ep: pointer to endpoint (transport indentifier) structure 649 * @ep: pointer to endpoint (transport identifier) structure
650 * 650 *
651 * pending conn offload completion queue manager 651 * pending conn offload completion queue manager
652 */ 652 */
@@ -721,7 +721,7 @@ bnx2i_find_ep_in_destroy_list(struct bnx2i_hba *hba, u32 iscsi_cid)
721/** 721/**
722 * bnx2i_ep_active_list_add - add an entry to ep active list 722 * bnx2i_ep_active_list_add - add an entry to ep active list
723 * @hba: pointer to adapter instance 723 * @hba: pointer to adapter instance
724 * @ep: pointer to endpoint (transport indentifier) structure 724 * @ep: pointer to endpoint (transport identifier) structure
725 * 725 *
726 * current active conn queue manager 726 * current active conn queue manager
727 */ 727 */
@@ -737,7 +737,7 @@ static void bnx2i_ep_active_list_add(struct bnx2i_hba *hba,
737/** 737/**
738 * bnx2i_ep_active_list_del - deletes an entry to ep active list 738 * bnx2i_ep_active_list_del - deletes an entry to ep active list
739 * @hba: pointer to adapter instance 739 * @hba: pointer to adapter instance
740 * @ep: pointer to endpoint (transport indentifier) structure 740 * @ep: pointer to endpoint (transport identifier) structure
741 * 741 *
742 * current active conn queue manager 742 * current active conn queue manager
743 */ 743 */
@@ -1695,7 +1695,7 @@ no_nx2_route:
1695/** 1695/**
1696 * bnx2i_tear_down_conn - tear down iscsi/tcp connection and free resources 1696 * bnx2i_tear_down_conn - tear down iscsi/tcp connection and free resources
1697 * @hba: pointer to adapter instance 1697 * @hba: pointer to adapter instance
1698 * @ep: endpoint (transport indentifier) structure 1698 * @ep: endpoint (transport identifier) structure
1699 * 1699 *
1700 * destroys cm_sock structure and on chip iscsi context 1700 * destroys cm_sock structure and on chip iscsi context
1701 */ 1701 */
diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c
index 00346fe939d5..1aafc331ee63 100644
--- a/drivers/scsi/csiostor/csio_init.c
+++ b/drivers/scsi/csiostor/csio_init.c
@@ -1010,7 +1010,6 @@ err_lnode_exit:
1010 csio_hw_stop(hw); 1010 csio_hw_stop(hw);
1011 spin_unlock_irq(&hw->lock); 1011 spin_unlock_irq(&hw->lock);
1012 csio_lnodes_unblock_request(hw); 1012 csio_lnodes_unblock_request(hw);
1013 pci_set_drvdata(hw->pdev, NULL);
1014 csio_lnodes_exit(hw, 0); 1013 csio_lnodes_exit(hw, 0);
1015 csio_hw_free(hw); 1014 csio_hw_free(hw);
1016err_pci_exit: 1015err_pci_exit:
@@ -1044,7 +1043,6 @@ static void csio_remove_one(struct pci_dev *pdev)
1044 1043
1045 csio_lnodes_exit(hw, 0); 1044 csio_lnodes_exit(hw, 0);
1046 csio_hw_free(hw); 1045 csio_hw_free(hw);
1047 pci_set_drvdata(pdev, NULL);
1048 csio_pci_exit(pdev, &bars); 1046 csio_pci_exit(pdev, &bars);
1049} 1047}
1050 1048
diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c
index 42e8624a9b9a..83d9bf6fa6ca 100644
--- a/drivers/scsi/dc395x.c
+++ b/drivers/scsi/dc395x.c
@@ -4861,7 +4861,6 @@ static void dc395x_remove_one(struct pci_dev *dev)
4861 adapter_uninit(acb); 4861 adapter_uninit(acb);
4862 pci_disable_device(dev); 4862 pci_disable_device(dev);
4863 scsi_host_put(scsi_host); 4863 scsi_host_put(scsi_host);
4864 pci_set_drvdata(dev, NULL);
4865} 4864}
4866 4865
4867 4866
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index be09b101b4a1..33e4ec2bfe73 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -1005,7 +1005,6 @@ static void fnic_remove(struct pci_dev *pdev)
1005 fnic_iounmap(fnic); 1005 fnic_iounmap(fnic);
1006 pci_release_regions(pdev); 1006 pci_release_regions(pdev);
1007 pci_disable_device(pdev); 1007 pci_disable_device(pdev);
1008 pci_set_drvdata(pdev, NULL);
1009 scsi_host_put(lp->host); 1008 scsi_host_put(lp->host);
1010} 1009}
1011 1010
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c
index 6d55b4e7e792..ee4fa40a50b1 100644
--- a/drivers/scsi/gdth.c
+++ b/drivers/scsi/gdth.c
@@ -594,8 +594,6 @@ static void gdth_pci_remove_one(struct pci_dev *pdev)
594{ 594{
595 gdth_ha_str *ha = pci_get_drvdata(pdev); 595 gdth_ha_str *ha = pci_get_drvdata(pdev);
596 596
597 pci_set_drvdata(pdev, NULL);
598
599 list_del(&ha->list); 597 list_del(&ha->list);
600 gdth_remove_one(ha); 598 gdth_remove_one(ha);
601 599
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index fb5a89815150..22f6432eb475 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -5017,7 +5017,6 @@ static void hpsa_remove_one(struct pci_dev *pdev)
5017 kfree(h->hba_inquiry_data); 5017 kfree(h->hba_inquiry_data);
5018 pci_disable_device(pdev); 5018 pci_disable_device(pdev);
5019 pci_release_regions(pdev); 5019 pci_release_regions(pdev);
5020 pci_set_drvdata(pdev, NULL);
5021 kfree(h); 5020 kfree(h);
5022} 5021}
5023 5022
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index ca6bf2af7ce8..68c94cc85c35 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -4581,8 +4581,6 @@ lpfc_disable_pci_dev(struct lpfc_hba *phba)
4581 /* Release PCI resource and disable PCI device */ 4581 /* Release PCI resource and disable PCI device */
4582 pci_release_selected_regions(pdev, bars); 4582 pci_release_selected_regions(pdev, bars);
4583 pci_disable_device(pdev); 4583 pci_disable_device(pdev);
4584 /* Null out PCI private reference to driver */
4585 pci_set_drvdata(pdev, NULL);
4586 4584
4587 return; 4585 return;
4588} 4586}
@@ -9429,7 +9427,6 @@ lpfc_pci_remove_one_s3(struct pci_dev *pdev)
9429 /* Disable interrupt */ 9427 /* Disable interrupt */
9430 lpfc_sli_disable_intr(phba); 9428 lpfc_sli_disable_intr(phba);
9431 9429
9432 pci_set_drvdata(pdev, NULL);
9433 scsi_host_put(shost); 9430 scsi_host_put(shost);
9434 9431
9435 /* 9432 /*
diff --git a/drivers/scsi/megaraid/megaraid_mbox.c b/drivers/scsi/megaraid/megaraid_mbox.c
index 515c9629e9fe..d1a4b82836ea 100644
--- a/drivers/scsi/megaraid/megaraid_mbox.c
+++ b/drivers/scsi/megaraid/megaraid_mbox.c
@@ -534,7 +534,6 @@ megaraid_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
534 return 0; 534 return 0;
535 535
536out_cmm_unreg: 536out_cmm_unreg:
537 pci_set_drvdata(pdev, NULL);
538 megaraid_cmm_unregister(adapter); 537 megaraid_cmm_unregister(adapter);
539out_fini_mbox: 538out_fini_mbox:
540 megaraid_fini_mbox(adapter); 539 megaraid_fini_mbox(adapter);
@@ -594,11 +593,6 @@ megaraid_detach_one(struct pci_dev *pdev)
594 // detach from the IO sub-system 593 // detach from the IO sub-system
595 megaraid_io_detach(adapter); 594 megaraid_io_detach(adapter);
596 595
597 // reset the device state in the PCI structure. We check this
598 // condition when we enter here. If the device state is NULL,
599 // that would mean the device has already been removed
600 pci_set_drvdata(pdev, NULL);
601
602 // Unregister from common management module 596 // Unregister from common management module
603 // 597 //
604 // FIXME: this must return success or failure for conditions if there 598 // FIXME: this must return success or failure for conditions if there
diff --git a/drivers/scsi/megaraid/megaraid_sas_base.c b/drivers/scsi/megaraid/megaraid_sas_base.c
index 2cf9470dd11b..0a743a5d1647 100644
--- a/drivers/scsi/megaraid/megaraid_sas_base.c
+++ b/drivers/scsi/megaraid/megaraid_sas_base.c
@@ -4451,7 +4451,6 @@ retry_irq_register:
4451 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL; 4451 megasas_mgmt_info.instance[megasas_mgmt_info.max_index] = NULL;
4452 megasas_mgmt_info.max_index--; 4452 megasas_mgmt_info.max_index--;
4453 4453
4454 pci_set_drvdata(pdev, NULL);
4455 instance->instancet->disable_intr(instance); 4454 instance->instancet->disable_intr(instance);
4456 if (instance->msix_vectors) 4455 if (instance->msix_vectors)
4457 for (i = 0 ; i < instance->msix_vectors; i++) 4456 for (i = 0 ; i < instance->msix_vectors; i++)
@@ -4807,8 +4806,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4807 } 4806 }
4808 } 4807 }
4809 4808
4810 pci_set_drvdata(instance->pdev, NULL);
4811
4812 instance->instancet->disable_intr(instance); 4809 instance->instancet->disable_intr(instance);
4813 4810
4814 if (instance->msix_vectors) 4811 if (instance->msix_vectors)
@@ -4850,8 +4847,6 @@ static void megasas_detach_one(struct pci_dev *pdev)
4850 instance->evt_detail, instance->evt_detail_h); 4847 instance->evt_detail, instance->evt_detail_h);
4851 scsi_host_put(host); 4848 scsi_host_put(host);
4852 4849
4853 pci_set_drvdata(pdev, NULL);
4854
4855 pci_disable_device(pdev); 4850 pci_disable_device(pdev);
4856 4851
4857 return; 4852 return;
diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c
index 7b7381d7671f..5ff978be249d 100644
--- a/drivers/scsi/mvsas/mv_init.c
+++ b/drivers/scsi/mvsas/mv_init.c
@@ -657,7 +657,6 @@ static void mvs_pci_remove(struct pci_dev *pdev)
657 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet); 657 tasklet_kill(&((struct mvs_prv_info *)sha->lldd_ha)->mv_tasklet);
658#endif 658#endif
659 659
660 pci_set_drvdata(pdev, NULL);
661 sas_unregister_ha(sha); 660 sas_unregister_ha(sha);
662 sas_remove_host(mvi->shost); 661 sas_remove_host(mvi->shost);
663 scsi_remove_host(mvi->shost); 662 scsi_remove_host(mvi->shost);
diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
index 6b1b4e91e53f..6c1f223a8e1d 100644
--- a/drivers/scsi/mvsas/mv_sas.c
+++ b/drivers/scsi/mvsas/mv_sas.c
@@ -1411,7 +1411,7 @@ static int mvs_exec_internal_tmf_task(struct domain_device *dev,
1411 1411
1412 if (res) { 1412 if (res) {
1413 del_timer(&task->slow_task->timer); 1413 del_timer(&task->slow_task->timer);
1414 mv_printk("executing internel task failed:%d\n", res); 1414 mv_printk("executing internal task failed:%d\n", res);
1415 goto ex_err; 1415 goto ex_err;
1416 } 1416 }
1417 1417
diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c
index c3601b57a80c..edbee8dc62c9 100644
--- a/drivers/scsi/mvumi.c
+++ b/drivers/scsi/mvumi.c
@@ -2583,7 +2583,6 @@ static int mvumi_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
2583 return 0; 2583 return 0;
2584 2584
2585fail_io_attach: 2585fail_io_attach:
2586 pci_set_drvdata(pdev, NULL);
2587 mhba->instancet->disable_intr(mhba); 2586 mhba->instancet->disable_intr(mhba);
2588 free_irq(mhba->pdev->irq, mhba); 2587 free_irq(mhba->pdev->irq, mhba);
2589fail_init_irq: 2588fail_init_irq:
@@ -2618,7 +2617,6 @@ static void mvumi_detach_one(struct pci_dev *pdev)
2618 free_irq(mhba->pdev->irq, mhba); 2617 free_irq(mhba->pdev->irq, mhba);
2619 mvumi_release_fw(mhba); 2618 mvumi_release_fw(mhba);
2620 scsi_host_put(host); 2619 scsi_host_put(host);
2621 pci_set_drvdata(pdev, NULL);
2622 pci_disable_device(pdev); 2620 pci_disable_device(pdev);
2623 dev_dbg(&pdev->dev, "driver is removed!\n"); 2621 dev_dbg(&pdev->dev, "driver is removed!\n");
2624} 2622}
diff --git a/drivers/scsi/ncr53c8xx.c b/drivers/scsi/ncr53c8xx.c
index 5982a587babc..7d014b11df62 100644
--- a/drivers/scsi/ncr53c8xx.c
+++ b/drivers/scsi/ncr53c8xx.c
@@ -1615,7 +1615,7 @@ struct ncb {
1615 spinlock_t smp_lock; /* Lock for SMP threading */ 1615 spinlock_t smp_lock; /* Lock for SMP threading */
1616 1616
1617 /*---------------------------------------------------------------- 1617 /*----------------------------------------------------------------
1618 ** Chip and controller indentification. 1618 ** Chip and controller identification.
1619 **---------------------------------------------------------------- 1619 **----------------------------------------------------------------
1620 */ 1620 */
1621 int unit; /* Unit number */ 1621 int unit; /* Unit number */
diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
index 662bf13c42f0..34f5f5ffef05 100644
--- a/drivers/scsi/pm8001/pm8001_init.c
+++ b/drivers/scsi/pm8001/pm8001_init.c
@@ -909,7 +909,6 @@ static void pm8001_pci_remove(struct pci_dev *pdev)
909 struct pm8001_hba_info *pm8001_ha; 909 struct pm8001_hba_info *pm8001_ha;
910 int i; 910 int i;
911 pm8001_ha = sha->lldd_ha; 911 pm8001_ha = sha->lldd_ha;
912 pci_set_drvdata(pdev, NULL);
913 sas_unregister_ha(sha); 912 sas_unregister_ha(sha);
914 sas_remove_host(pm8001_ha->shost); 913 sas_remove_host(pm8001_ha->shost);
915 list_del(&pm8001_ha->list); 914 list_del(&pm8001_ha->list);
diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
index 1eb7b0280a45..e43db7742047 100644
--- a/drivers/scsi/pmcraid.c
+++ b/drivers/scsi/pmcraid.c
@@ -6049,7 +6049,6 @@ out_release_regions:
6049 6049
6050out_disable_device: 6050out_disable_device:
6051 atomic_dec(&pmcraid_adapter_count); 6051 atomic_dec(&pmcraid_adapter_count);
6052 pci_set_drvdata(pdev, NULL);
6053 pci_disable_device(pdev); 6052 pci_disable_device(pdev);
6054 return -ENODEV; 6053 return -ENODEV;
6055} 6054}
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index bcd57f699ebb..52be35e0300c 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -3179,7 +3179,6 @@ qla2x00_remove_one(struct pci_dev *pdev)
3179 pci_disable_pcie_error_reporting(pdev); 3179 pci_disable_pcie_error_reporting(pdev);
3180 3180
3181 pci_disable_device(pdev); 3181 pci_disable_device(pdev);
3182 pci_set_drvdata(pdev, NULL);
3183} 3182}
3184 3183
3185static void 3184static void
diff --git a/drivers/scsi/qla4xxx/ql4_os.c b/drivers/scsi/qla4xxx/ql4_os.c
index 6dc3e99b7f9c..a28d5e624aab 100644
--- a/drivers/scsi/qla4xxx/ql4_os.c
+++ b/drivers/scsi/qla4xxx/ql4_os.c
@@ -7827,7 +7827,6 @@ static void qla4xxx_remove_adapter(struct pci_dev *pdev)
7827 7827
7828 pci_disable_pcie_error_reporting(pdev); 7828 pci_disable_pcie_error_reporting(pdev);
7829 pci_disable_device(pdev); 7829 pci_disable_device(pdev);
7830 pci_set_drvdata(pdev, NULL);
7831} 7830}
7832 7831
7833/** 7832/**
diff --git a/drivers/scsi/stex.c b/drivers/scsi/stex.c
index 325c31caa6e0..1aa4befcfbd0 100644
--- a/drivers/scsi/stex.c
+++ b/drivers/scsi/stex.c
@@ -1790,8 +1790,6 @@ static void stex_remove(struct pci_dev *pdev)
1790 1790
1791 scsi_remove_host(hba->host); 1791 scsi_remove_host(hba->host);
1792 1792
1793 pci_set_drvdata(pdev, NULL);
1794
1795 stex_hba_stop(hba); 1793 stex_hba_stop(hba);
1796 1794
1797 stex_hba_free(hba); 1795 stex_hba_free(hba);
diff --git a/drivers/scsi/sym53c8xx_2/sym_glue.h b/drivers/scsi/sym53c8xx_2/sym_glue.h
index b80bf709f104..805369521df8 100644
--- a/drivers/scsi/sym53c8xx_2/sym_glue.h
+++ b/drivers/scsi/sym53c8xx_2/sym_glue.h
@@ -174,7 +174,7 @@ struct sym_slcb {
174 */ 174 */
175struct sym_shcb { 175struct sym_shcb {
176 /* 176 /*
177 * Chip and controller indentification. 177 * Chip and controller identification.
178 */ 178 */
179 int unit; 179 int unit;
180 char inst_name[16]; 180 char inst_name[16];
diff --git a/drivers/scsi/tmscsim.c b/drivers/scsi/tmscsim.c
index 11423615c2ea..b006cf789ba1 100644
--- a/drivers/scsi/tmscsim.c
+++ b/drivers/scsi/tmscsim.c
@@ -2553,7 +2553,6 @@ static void dc390_remove_one(struct pci_dev *dev)
2553 2553
2554 pci_disable_device(dev); 2554 pci_disable_device(dev);
2555 scsi_host_put(scsi_host); 2555 scsi_host_put(scsi_host);
2556 pci_set_drvdata(dev, NULL);
2557} 2556}
2558 2557
2559static struct pci_device_id tmscsim_pci_tbl[] = { 2558static struct pci_device_id tmscsim_pci_tbl[] = {
diff --git a/drivers/scsi/ufs/ufshcd-pci.c b/drivers/scsi/ufs/ufshcd-pci.c
index a823cf44e949..8b9531204c2b 100644
--- a/drivers/scsi/ufs/ufshcd-pci.c
+++ b/drivers/scsi/ufs/ufshcd-pci.c
@@ -132,7 +132,6 @@ static void ufshcd_pci_remove(struct pci_dev *pdev)
132 pm_runtime_forbid(&pdev->dev); 132 pm_runtime_forbid(&pdev->dev);
133 pm_runtime_get_noresume(&pdev->dev); 133 pm_runtime_get_noresume(&pdev->dev);
134 ufshcd_remove(hba); 134 ufshcd_remove(hba);
135 pci_set_drvdata(pdev, NULL);
136} 135}
137 136
138/** 137/**
diff --git a/drivers/scsi/vmw_pvscsi.c b/drivers/scsi/vmw_pvscsi.c
index 3bfaa66fa0d1..b9755ec0e812 100644
--- a/drivers/scsi/vmw_pvscsi.c
+++ b/drivers/scsi/vmw_pvscsi.c
@@ -1405,7 +1405,6 @@ out_release_resources:
1405out_free_host: 1405out_free_host:
1406 scsi_host_put(host); 1406 scsi_host_put(host);
1407out_disable_device: 1407out_disable_device:
1408 pci_set_drvdata(pdev, NULL);
1409 pci_disable_device(pdev); 1408 pci_disable_device(pdev);
1410 1409
1411 return error; 1410 return error;
@@ -1445,7 +1444,6 @@ static void pvscsi_remove(struct pci_dev *pdev)
1445 1444
1446 scsi_host_put(host); 1445 scsi_host_put(host);
1447 1446
1448 pci_set_drvdata(pdev, NULL);
1449 pci_disable_device(pdev); 1447 pci_disable_device(pdev);
1450} 1448}
1451 1449