aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
-rw-r--r--drivers/scsi/lpfc/lpfc_init.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c
index 4df0a77ab12e..388b92a39589 100644
--- a/drivers/scsi/lpfc/lpfc_init.c
+++ b/drivers/scsi/lpfc/lpfc_init.c
@@ -1187,12 +1187,12 @@ lpfc_cleanup(struct lpfc_hba * phba)
1187 lpfc_can_disctmo(phba); 1187 lpfc_can_disctmo(phba);
1188 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_nlpunmap_list, 1188 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_nlpunmap_list,
1189 nlp_listp) { 1189 nlp_listp) {
1190 lpfc_nlp_remove(phba, ndlp); 1190 lpfc_nlp_put(ndlp);
1191 } 1191 }
1192 1192
1193 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_nlpmap_list, 1193 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_nlpmap_list,
1194 nlp_listp) { 1194 nlp_listp) {
1195 lpfc_nlp_remove(phba, ndlp); 1195 lpfc_nlp_put(ndlp);
1196 } 1196 }
1197 1197
1198 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_unused_list, 1198 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_unused_list,
@@ -1202,27 +1202,27 @@ lpfc_cleanup(struct lpfc_hba * phba)
1202 1202
1203 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_plogi_list, 1203 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_plogi_list,
1204 nlp_listp) { 1204 nlp_listp) {
1205 lpfc_nlp_remove(phba, ndlp); 1205 lpfc_nlp_put(ndlp);
1206 } 1206 }
1207 1207
1208 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_adisc_list, 1208 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_adisc_list,
1209 nlp_listp) { 1209 nlp_listp) {
1210 lpfc_nlp_remove(phba, ndlp); 1210 lpfc_nlp_put(ndlp);
1211 } 1211 }
1212 1212
1213 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_reglogin_list, 1213 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_reglogin_list,
1214 nlp_listp) { 1214 nlp_listp) {
1215 lpfc_nlp_remove(phba, ndlp); 1215 lpfc_nlp_put(ndlp);
1216 } 1216 }
1217 1217
1218 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_prli_list, 1218 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_prli_list,
1219 nlp_listp) { 1219 nlp_listp) {
1220 lpfc_nlp_remove(phba, ndlp); 1220 lpfc_nlp_put(ndlp);
1221 } 1221 }
1222 1222
1223 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_npr_list, 1223 list_for_each_entry_safe(ndlp, next_ndlp, &phba->fc_npr_list,
1224 nlp_listp) { 1224 nlp_listp) {
1225 lpfc_nlp_remove(phba, ndlp); 1225 lpfc_nlp_put(ndlp);
1226 } 1226 }
1227 1227
1228 INIT_LIST_HEAD(&phba->fc_nlpmap_list); 1228 INIT_LIST_HEAD(&phba->fc_nlpmap_list);
@@ -1510,7 +1510,6 @@ lpfc_pci_probe_one(struct pci_dev *pdev, const struct pci_device_id *pid)
1510 INIT_LIST_HEAD(&phba->fc_prli_list); 1510 INIT_LIST_HEAD(&phba->fc_prli_list);
1511 INIT_LIST_HEAD(&phba->fc_npr_list); 1511 INIT_LIST_HEAD(&phba->fc_npr_list);
1512 1512
1513
1514 pci_set_master(pdev); 1513 pci_set_master(pdev);
1515 retval = pci_set_mwi(pdev); 1514 retval = pci_set_mwi(pdev);
1516 if (retval) 1515 if (retval)