mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
char: xillybus: Remove redundant dev_err()
Since commit 55b48e23f5 ("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() calls.
Signed-off-by: Pan Chuang <panchuang@vivo.com>
Acked-by: Eli Billauer <eli.billauer@gmail.com>
Link: https://patch.msgid.link/20260710105318.376496-4-panchuang@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0446c8456c
commit
2cedf2272f
@@ -55,11 +55,8 @@ static int xilly_drv_probe(struct platform_device *op)
|
||||
|
||||
rc = devm_request_irq(dev, irq, xillybus_isr, 0, xillyname, endpoint);
|
||||
|
||||
if (rc) {
|
||||
dev_err(endpoint->dev,
|
||||
"Failed to register IRQ handler. Aborting.\n");
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
return xillybus_endpoint_discovery(endpoint);
|
||||
}
|
||||
|
||||
@@ -83,11 +83,8 @@ static int xilly_probe(struct pci_dev *pdev,
|
||||
}
|
||||
rc = devm_request_irq(&pdev->dev, pdev->irq, xillybus_isr, 0,
|
||||
xillyname, endpoint);
|
||||
if (rc) {
|
||||
dev_err(endpoint->dev,
|
||||
"Failed to register MSI handler. Aborting.\n");
|
||||
if (rc)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
/*
|
||||
* Some (old and buggy?) hardware drops 64-bit addressed PCIe packets,
|
||||
|
||||
Reference in New Issue
Block a user