Commit 31696204 authored by Saurav Kashyap's avatar Saurav Kashyap Committed by Martin K. Petersen

scsi: qedf: Add shutdown callback handler

Add shutdown callback handler.
Signed-off-by: default avatarSaurav Kashyap <skashyap@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent ec6350b8
...@@ -27,6 +27,7 @@ const struct qed_fcoe_ops *qed_ops; ...@@ -27,6 +27,7 @@ const struct qed_fcoe_ops *qed_ops;
static int qedf_probe(struct pci_dev *pdev, const struct pci_device_id *id); static int qedf_probe(struct pci_dev *pdev, const struct pci_device_id *id);
static void qedf_remove(struct pci_dev *pdev); static void qedf_remove(struct pci_dev *pdev);
static void qedf_shutdown(struct pci_dev *pdev);
/* /*
* Driver module parameters. * Driver module parameters.
...@@ -3134,6 +3135,7 @@ static struct pci_driver qedf_pci_driver = { ...@@ -3134,6 +3135,7 @@ static struct pci_driver qedf_pci_driver = {
.id_table = qedf_pci_tbl, .id_table = qedf_pci_tbl,
.probe = qedf_probe, .probe = qedf_probe,
.remove = qedf_remove, .remove = qedf_remove,
.shutdown = qedf_shutdown,
}; };
static int __qedf_probe(struct pci_dev *pdev, int mode) static int __qedf_probe(struct pci_dev *pdev, int mode)
...@@ -3749,6 +3751,11 @@ void qedf_get_protocol_tlv_data(void *dev, void *data) ...@@ -3749,6 +3751,11 @@ void qedf_get_protocol_tlv_data(void *dev, void *data)
fcoe->scsi_tsk_full = qedf->task_set_fulls; fcoe->scsi_tsk_full = qedf->task_set_fulls;
} }
static void qedf_shutdown(struct pci_dev *pdev)
{
__qedf_remove(pdev, QEDF_MODE_NORMAL);
}
/* Generic TLV data callback */ /* Generic TLV data callback */
void qedf_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data) void qedf_get_generic_tlv_data(void *dev, struct qed_generic_tlvs *data)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment