diff options
Diffstat (limited to 'drivers/scsi/libfc/fc_lport.c')
-rw-r--r-- | drivers/scsi/libfc/fc_lport.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c index e2cd087e71b2..e0ef81426c33 100644 --- a/drivers/scsi/libfc/fc_lport.c +++ b/drivers/scsi/libfc/fc_lport.c | |||
@@ -633,6 +633,7 @@ int fc_lport_destroy(struct fc_lport *lport) | |||
633 | lport->tt.fcp_abort_io(lport); | 633 | lport->tt.fcp_abort_io(lport); |
634 | lport->tt.disc_stop_final(lport); | 634 | lport->tt.disc_stop_final(lport); |
635 | lport->tt.exch_mgr_reset(lport, 0, 0); | 635 | lport->tt.exch_mgr_reset(lport, 0, 0); |
636 | fc_fc4_del_lport(lport); | ||
636 | return 0; | 637 | return 0; |
637 | } | 638 | } |
638 | EXPORT_SYMBOL(fc_lport_destroy); | 639 | EXPORT_SYMBOL(fc_lport_destroy); |
@@ -1633,6 +1634,7 @@ int fc_lport_init(struct fc_lport *lport) | |||
1633 | fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_1GBIT; | 1634 | fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_1GBIT; |
1634 | if (lport->link_supported_speeds & FC_PORTSPEED_10GBIT) | 1635 | if (lport->link_supported_speeds & FC_PORTSPEED_10GBIT) |
1635 | fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_10GBIT; | 1636 | fc_host_supported_speeds(lport->host) |= FC_PORTSPEED_10GBIT; |
1637 | fc_fc4_add_lport(lport); | ||
1636 | 1638 | ||
1637 | return 0; | 1639 | return 0; |
1638 | } | 1640 | } |