qla2x00t: Drop redundant pci_enable_pcie_error_reporting()

See also commits:

- 7d1afe8a ("qla2x00t-32gbit: Drop redundant
  pci_enable_pcie_error_reporting()").

- 596800ce ("qla2x00t-32gbit: Backport to older kernel versions").
This commit is contained in:
Gleb Chesnokov
2023-09-23 10:51:37 +03:00
parent 60c26136bf
commit 48e04668d6
2 changed files with 8 additions and 0 deletions

View File

@@ -7,7 +7,9 @@
#ifndef __QLA_DEF_H
#define __QLA_DEF_H
#ifndef INSIDE_KERNEL_TREE
#include <linux/version.h>
#endif
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/types.h>
@@ -24,7 +26,9 @@
#include <linux/interrupt.h>
#include <linux/workqueue.h>
#include <linux/firmware.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
#include <linux/aer.h>
#endif
#include <linux/mutex.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) || \

View File

@@ -2367,8 +2367,10 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
goto probe_out;
}
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
/* This may fail but that's ok */
pci_enable_pcie_error_reporting(pdev);
#endif
ha = kzalloc(sizeof(struct qla_hw_data), GFP_KERNEL);
if (!ha) {
@@ -3020,7 +3022,9 @@ qla2x00_remove_one(struct pci_dev *pdev)
kfree(ha);
ha = NULL;
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
pci_disable_pcie_error_reporting(pdev);
#endif
pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
}