mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 05:44:11 +00:00
media: tegra_cec: fix the return value handle for platform_get_irq()
There is no possible for platform_get_irq() to return 0, and the return value of platform_get_irq() is more sensible to show the error reason. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
b134b30f7f
commit
74a5a66fb4
1 changed files with 2 additions and 2 deletions
|
@ -348,8 +348,8 @@ static int tegra_cec_probe(struct platform_device *pdev)
|
|||
|
||||
cec->tegra_cec_irq = platform_get_irq(pdev, 0);
|
||||
|
||||
if (cec->tegra_cec_irq <= 0)
|
||||
return -EBUSY;
|
||||
if (cec->tegra_cec_irq < 0)
|
||||
return cec->tegra_cec_irq;
|
||||
|
||||
cec->cec_base = devm_ioremap(&pdev->dev, res->start,
|
||||
resource_size(res));
|
||||
|
|
Loading…
Reference in a new issue