summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/host.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2012-02-18 01:30:47 +0100
committerDan Williams <dan.j.williams@intel.com>2012-05-17 21:27:12 +0200
commitae904d15cf344bcb426f63982016f6bacc45825b (patch)
tree76b31d9458213ed3f57656d7e74ea862c41ef04d /drivers/scsi/isci/host.c
parentisci: kill ->status, and ->state_lock in isci_host (diff)
downloadlinux-ae904d15cf344bcb426f63982016f6bacc45825b.tar.xz
linux-ae904d15cf344bcb426f63982016f6bacc45825b.zip
isci: kill isci_port.domain_dev_list
Another unused field, and isci_port_init is overkill. Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.c')
-rw-r--r--drivers/scsi/isci/host.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c
index d647b07ba1a3..bbec1982d07f 100644
--- a/drivers/scsi/isci/host.c
+++ b/drivers/scsi/isci/host.c
@@ -2557,8 +2557,12 @@ int isci_host_init(struct isci_host *ihost)
if (err)
return err;
- for (i = 0; i < SCI_MAX_PORTS; i++)
- isci_port_init(&ihost->ports[i], ihost, i);
+ for (i = 0; i < SCI_MAX_PORTS; i++) {
+ struct isci_port *iport = &ihost->ports[i];
+
+ INIT_LIST_HEAD(&iport->remote_dev_list);
+ iport->isci_host = ihost;
+ }
for (i = 0; i < SCI_MAX_PHYS; i++)
isci_phy_init(&ihost->phys[i], ihost, i);