Skip to content

Commit 62e9c00

Browse files
committed
eth: fbnic: don't disable the PCI device twice
We use pcim_enable_device(), there is no need to call pci_disable_device(). Fixes: 546dd90 ("eth: fbnic: Add scaffolding for Meta's NIC driver") Reviewed-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 8ffade7 commit 62e9c00

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/ethernet/meta/fbnic/fbnic_pci.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ static int fbnic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
319319
free_irqs:
320320
fbnic_free_irqs(fbd);
321321
free_fbd:
322-
pci_disable_device(pdev);
323322
fbnic_devlink_free(fbd);
324323

325324
return err;
@@ -349,7 +348,6 @@ static void fbnic_remove(struct pci_dev *pdev)
349348
fbnic_fw_disable_mbx(fbd);
350349
fbnic_free_irqs(fbd);
351350

352-
pci_disable_device(pdev);
353351
fbnic_devlink_free(fbd);
354352
}
355353

0 commit comments

Comments
 (0)