mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 20:54:03 +02:00
ASoC: xilinx: xlnx_spdif: Preserve devm_request_irq() error codes
devm_request_irq() can return various error codes, such as -EINVAL, -ENOTCONN, -ENOMEM, -ENOSYS, and -EBUSY. However, the driver overwrites all of them with -ENODEV, which hides the actual cause of the failure. Also, devm_request_irq() already reports failures internally, so the additional dev_err() call is redundant. Return the original error code and remove the duplicate error message. Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Reviewed-by: Michal Simek <michal.simek@amd.com> Link: https://patch.msgid.link/20260710102138.29347-3-phucduc.bui@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
14b68141bc
commit
cb32e3acb1
|
|
@ -274,10 +274,8 @@ static int xlnx_spdif_probe(struct platform_device *pdev)
|
|||
ret = devm_request_irq(dev, ret,
|
||||
xlnx_spdifrx_irq_handler,
|
||||
0, "XLNX_SPDIF_RX", ctx);
|
||||
if (ret) {
|
||||
dev_err(dev, "spdif rx irq request failed\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
init_waitqueue_head(&ctx->chsts_q);
|
||||
dai_drv = &xlnx_spdif_rx_dai;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user