mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
media: ti: vpe: Fix the error code of devm_request_irq()
Return the actual error code from devm_request_irq() instead of
incorrectly returning -ENOMEM.
Fixes: fc2873aa4a ("media: ti: vpe: Add the VIP driver")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
34ca1065a4
commit
5e78a431a3
|
|
@ -3472,7 +3472,7 @@ static int vip_probe_slice(struct platform_device *pdev, int slice)
|
|||
ret = devm_request_irq(&pdev->dev, dev->irq, vip_irq,
|
||||
0, VIP_MODULE_NAME, dev);
|
||||
if (ret < 0)
|
||||
return -ENOMEM;
|
||||
return ret;
|
||||
|
||||
spin_lock_init(&dev->slock);
|
||||
mutex_init(&dev->mutex);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user