diff options
| author | Anton Blanchard <anton@samba.org> | 2017-02-12 16:49:20 -0500 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-07 20:29:10 -0500 |
| commit | 85e8a23936ab3442de0c42da97d53b29f004ece1 (patch) | |
| tree | 1c2946064a77ff7b4c4f8839aa8d63c019f0aa3b | |
| parent | f1c635b439a5c01776fe3a25b1e2dc546ea82e6f (diff) | |
scsi: lpfc: Add shutdown method for kexec
We see lpfc devices regularly fail during kexec. Fix this by adding a
shutdown method which mirrors the remove method.
Cc: <stable@vger.kernel.org>
Signed-off-by: Anton Blanchard <anton@samba.org>
Reviewed-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Tested-by: Mauricio Faria de Oliveira <mauricfo@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
| -rw-r--r-- | drivers/scsi/lpfc/lpfc_init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 661bd25a404a..2697d49da4d7 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c | |||
| @@ -12059,6 +12059,7 @@ static struct pci_driver lpfc_driver = { | |||
| 12059 | .id_table = lpfc_id_table, | 12059 | .id_table = lpfc_id_table, |
| 12060 | .probe = lpfc_pci_probe_one, | 12060 | .probe = lpfc_pci_probe_one, |
| 12061 | .remove = lpfc_pci_remove_one, | 12061 | .remove = lpfc_pci_remove_one, |
| 12062 | .shutdown = lpfc_pci_remove_one, | ||
| 12062 | .suspend = lpfc_pci_suspend_one, | 12063 | .suspend = lpfc_pci_suspend_one, |
| 12063 | .resume = lpfc_pci_resume_one, | 12064 | .resume = lpfc_pci_resume_one, |
| 12064 | .err_handler = &lpfc_err_handler, | 12065 | .err_handler = &lpfc_err_handler, |
