diff options
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_els.c')
-rw-r--r-- | drivers/scsi/bnx2fc/bnx2fc_els.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_els.c b/drivers/scsi/bnx2fc/bnx2fc_els.c index e3f18736ba37..5d7baa2371f8 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_els.c +++ b/drivers/scsi/bnx2fc/bnx2fc_els.c | |||
@@ -259,7 +259,7 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op, | |||
259 | struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec) | 259 | struct bnx2fc_els_cb_arg *cb_arg, u32 timer_msec) |
260 | { | 260 | { |
261 | struct fcoe_port *port = tgt->port; | 261 | struct fcoe_port *port = tgt->port; |
262 | struct bnx2fc_hba *hba = port->priv; | 262 | struct bnx2fc_interface *interface = port->priv; |
263 | struct fc_rport *rport = tgt->rport; | 263 | struct fc_rport *rport = tgt->rport; |
264 | struct fc_lport *lport = port->lport; | 264 | struct fc_lport *lport = port->lport; |
265 | struct bnx2fc_cmd *els_req; | 265 | struct bnx2fc_cmd *els_req; |
@@ -352,7 +352,8 @@ static int bnx2fc_initiate_els(struct bnx2fc_rport *tgt, unsigned int op, | |||
352 | index = xid % BNX2FC_TASKS_PER_PAGE; | 352 | index = xid % BNX2FC_TASKS_PER_PAGE; |
353 | 353 | ||
354 | /* Initialize task context for this IO request */ | 354 | /* Initialize task context for this IO request */ |
355 | task_page = (struct fcoe_task_ctx_entry *) hba->task_ctx[task_idx]; | 355 | task_page = (struct fcoe_task_ctx_entry *) |
356 | interface->hba->task_ctx[task_idx]; | ||
356 | task = &(task_page[index]); | 357 | task = &(task_page[index]); |
357 | bnx2fc_init_mp_task(els_req, task); | 358 | bnx2fc_init_mp_task(els_req, task); |
358 | 359 | ||
@@ -496,8 +497,8 @@ struct fc_seq *bnx2fc_elsct_send(struct fc_lport *lport, u32 did, | |||
496 | void *arg, u32 timeout) | 497 | void *arg, u32 timeout) |
497 | { | 498 | { |
498 | struct fcoe_port *port = lport_priv(lport); | 499 | struct fcoe_port *port = lport_priv(lport); |
499 | struct bnx2fc_hba *hba = port->priv; | 500 | struct bnx2fc_interface *interface = port->priv; |
500 | struct fcoe_ctlr *fip = &hba->ctlr; | 501 | struct fcoe_ctlr *fip = &interface->ctlr; |
501 | struct fc_frame_header *fh = fc_frame_header_get(fp); | 502 | struct fc_frame_header *fh = fc_frame_header_get(fp); |
502 | 503 | ||
503 | switch (op) { | 504 | switch (op) { |