提交 ae904d15 编写于 作者: D Dan Williams

isci: kill isci_port.domain_dev_list

Another unused field, and isci_port_init is overkill.
Signed-off-by: NDan Williams <dan.j.williams@intel.com>
上级 1844e478
...@@ -2557,8 +2557,12 @@ int isci_host_init(struct isci_host *ihost) ...@@ -2557,8 +2557,12 @@ int isci_host_init(struct isci_host *ihost)
if (err) if (err)
return err; return err;
for (i = 0; i < SCI_MAX_PORTS; i++) for (i = 0; i < SCI_MAX_PORTS; i++) {
isci_port_init(&ihost->ports[i], ihost, 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++) for (i = 0; i < SCI_MAX_PHYS; i++)
isci_phy_init(&ihost->phys[i], ihost, i); isci_phy_init(&ihost->phys[i], ihost, i);
......
...@@ -1606,13 +1606,6 @@ void sci_port_construct(struct isci_port *iport, u8 index, ...@@ -1606,13 +1606,6 @@ void sci_port_construct(struct isci_port *iport, u8 index,
iport->phy_table[index] = NULL; iport->phy_table[index] = NULL;
} }
void isci_port_init(struct isci_port *iport, struct isci_host *ihost, int index)
{
INIT_LIST_HEAD(&iport->remote_dev_list);
INIT_LIST_HEAD(&iport->domain_dev_list);
iport->isci_host = ihost;
}
void sci_port_broadcast_change_received(struct isci_port *iport, struct isci_phy *iphy) void sci_port_broadcast_change_received(struct isci_port *iport, struct isci_phy *iphy)
{ {
struct isci_host *ihost = iport->owning_controller; struct isci_host *ihost = iport->owning_controller;
......
...@@ -97,7 +97,6 @@ enum isci_status { ...@@ -97,7 +97,6 @@ enum isci_status {
struct isci_port { struct isci_port {
struct isci_host *isci_host; struct isci_host *isci_host;
struct list_head remote_dev_list; struct list_head remote_dev_list;
struct list_head domain_dev_list;
#define IPORT_RESET_PENDING 0 #define IPORT_RESET_PENDING 0
unsigned long state; unsigned long state;
enum sci_status hard_reset_status; enum sci_status hard_reset_status;
...@@ -273,11 +272,6 @@ void sci_port_get_attached_sas_address( ...@@ -273,11 +272,6 @@ void sci_port_get_attached_sas_address(
void isci_port_formed(struct asd_sas_phy *); void isci_port_formed(struct asd_sas_phy *);
void isci_port_deformed(struct asd_sas_phy *); void isci_port_deformed(struct asd_sas_phy *);
void isci_port_init(
struct isci_port *port,
struct isci_host *host,
int index);
int isci_port_perform_hard_reset(struct isci_host *ihost, struct isci_port *iport, int isci_port_perform_hard_reset(struct isci_host *ihost, struct isci_port *iport,
struct isci_phy *iphy); struct isci_phy *iphy);
int isci_ata_check_ready(struct domain_device *dev); int isci_ata_check_ready(struct domain_device *dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册