Skip to content

Commit 303a672

Browse files
committed
Use API pci_aer_clear_nonfatal_status() in kernel v5.7
to replace pci_cleanup_aer_uncorrect_error_status() In response to below kernel API change in v5.7 "PCI/AER: Rationalize error status register clearing" torvalds/linux@894020f
1 parent e9a88a1 commit 303a672

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ static void switchtec_pci_error_resume(struct pci_dev *pdev)
18061806
struct switchtec_dev *stdev = pci_get_drvdata(pdev);
18071807

18081808
dev_info(&stdev->dev, "resume.\n");
1809-
pci_cleanup_aer_uncorrect_error_status(pdev);
1809+
pci_aer_clear_nonfatal_status(pdev);
18101810
}
18111811

18121812
static const struct pci_error_handlers switchtec_pci_err_handler = {

0 commit comments

Comments
 (0)