summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorPan Chuang <panchuang@vivo.com>2026-07-28 16:05:48 +0800
committerMika Westerberg <mika.westerberg@linux.intel.com>2026-07-28 13:52:43 +0200
commit41365e558e447cc012ad7a6984f55054323fc63c (patch)
treeb58af799277f1c65efea114a48449b662dd6349c /drivers
parent21ed236e70bf3d48611c2ce1a438699234780cc7 (diff)
downloadlinux-41365e558e447cc012ad7a6984f55054323fc63c.tar.gz
linux-41365e558e447cc012ad7a6984f55054323fc63c.zip
thunderbolt: Remove redundant dev_err_probe()
Since commit 55b48e23f5c4 ("genirq/devres: Add error handling in devm_request_*_irq()"), devm_request_irq() automatically logs detailed error messages on failure. Remove the now-redundant driver-specific dev_err_probe() calls. Signed-off-by: Pan Chuang <panchuang@vivo.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thunderbolt/pci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thunderbolt/pci.c b/drivers/thunderbolt/pci.c
index dbb6badda867..8462ccb59b7e 100644
--- a/drivers/thunderbolt/pci.c
+++ b/drivers/thunderbolt/pci.c
@@ -112,7 +112,6 @@ static int nhi_pci_init_msi(struct tb_nhi *nhi)
{
struct tb_nhi_pci *nhi_pci = nhi_to_pci(nhi);
struct pci_dev *pdev = to_pci_dev(nhi->dev);
- struct device *dev = &pdev->dev;
int res, irq, nvec;
ida_init(&nhi_pci->msix_ida);
@@ -139,7 +138,7 @@ static int nhi_pci_init_msi(struct tb_nhi *nhi)
res = devm_request_irq(&pdev->dev, irq, nhi_msi,
IRQF_NO_SUSPEND, "thunderbolt", nhi);
if (res)
- return dev_err_probe(dev, res, "request_irq failed, aborting\n");
+ return res;
}
return 0;