nvme-pci: don't open-code nvme_reset_ctrl
Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
6b1943af3f
commit
4caff8fc19
1 changed files with 2 additions and 2 deletions
|
@ -2498,10 +2498,10 @@ static int nvme_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
|||
if (result)
|
||||
goto release_pools;
|
||||
|
||||
nvme_change_ctrl_state(&dev->ctrl, NVME_CTRL_RESETTING);
|
||||
dev_info(dev->ctrl.device, "pci function %s\n", dev_name(&pdev->dev));
|
||||
|
||||
queue_work(nvme_wq, &dev->ctrl.reset_work);
|
||||
nvme_reset_ctrl(&dev->ctrl);
|
||||
|
||||
return 0;
|
||||
|
||||
release_pools:
|
||||
|
|
Loading…
Reference in a new issue