mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
eth: fbnic: don't disable the PCI device twice
We use pcim_enable_device(), there is no need to call pci_disable_device().
Fixes: 546dd90be9 ("eth: fbnic: Add scaffolding for Meta's NIC driver")
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241115014809.754860-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
8ffade77b6
commit
62e9c00ea8
|
|
@ -319,7 +319,6 @@ static int fbnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|||
free_irqs:
|
||||
fbnic_free_irqs(fbd);
|
||||
free_fbd:
|
||||
pci_disable_device(pdev);
|
||||
fbnic_devlink_free(fbd);
|
||||
|
||||
return err;
|
||||
|
|
@ -349,7 +348,6 @@ static void fbnic_remove(struct pci_dev *pdev)
|
|||
fbnic_fw_disable_mbx(fbd);
|
||||
fbnic_free_irqs(fbd);
|
||||
|
||||
pci_disable_device(pdev);
|
||||
fbnic_devlink_free(fbd);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user