aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/phy.c
diff options
context:
space:
mode:
authorArtur Wojcik <artur.wojcik@intel.com>2011-05-04 03:58:16 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:46 -0400
commitcc3dbd0a9178865d4444f8e28b51715808e9ac85 (patch)
tree4f8da28b4740e0ddaeb3163a3d317f36bc49571c /drivers/scsi/isci/phy.c
parentd06b487b78f28a02efdcdcc9ec295bf230b9d0e8 (diff)
isci: unify isci_host data structures
Make it explicit that isci_host and scic_sds_controller are one in the same object. Signed-off-by: Artur Wojcik <artur.wojcik@intel.com> [removed ->ihost back pointer] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/phy.c')
-rw-r--r--drivers/scsi/isci/phy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/isci/phy.c b/drivers/scsi/isci/phy.c
index a690b6b664f7..160790a0de0e 100644
--- a/drivers/scsi/isci/phy.c
+++ b/drivers/scsi/isci/phy.c
@@ -79,7 +79,6 @@ void isci_phy_init(
79 struct isci_host *isci_host, 79 struct isci_host *isci_host,
80 int index) 80 int index)
81{ 81{
82 struct scic_sds_controller *scic = isci_host->core_controller;
83 struct scic_sds_phy *scic_phy; 82 struct scic_sds_phy *scic_phy;
84 union scic_oem_parameters oem; 83 union scic_oem_parameters oem;
85 enum sci_status status = SCI_SUCCESS; 84 enum sci_status status = SCI_SUCCESS;
@@ -87,7 +86,7 @@ void isci_phy_init(
87 86
88 /*--------------- SCU_Phy Initialization Stuff -----------------------*/ 87 /*--------------- SCU_Phy Initialization Stuff -----------------------*/
89 88
90 status = scic_controller_get_phy_handle(scic, index, &scic_phy); 89 status = scic_controller_get_phy_handle(&isci_host->sci, index, &scic_phy);
91 if (status == SCI_SUCCESS) { 90 if (status == SCI_SUCCESS) {
92 phy->sci_phy_handle = scic_phy; 91 phy->sci_phy_handle = scic_phy;
93 scic_phy->iphy = phy; 92 scic_phy->iphy = phy;
@@ -95,7 +94,7 @@ void isci_phy_init(
95 dev_err(&isci_host->pdev->dev, 94 dev_err(&isci_host->pdev->dev,
96 "failed scic_controller_get_phy_handle\n"); 95 "failed scic_controller_get_phy_handle\n");
97 96
98 scic_oem_parameters_get(scic, &oem); 97 scic_oem_parameters_get(&isci_host->sci, &oem);
99 sas_addr = oem.sds1.phys[index].sas_address.high; 98 sas_addr = oem.sds1.phys[index].sas_address.high;
100 sas_addr <<= 32; 99 sas_addr <<= 32;
101 sas_addr |= oem.sds1.phys[index].sas_address.low; 100 sas_addr |= oem.sds1.phys[index].sas_address.low;