media: tegra_cec: fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Tue, 1 Aug 2023 13:52:53 +0000 (21:52 +0800)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Thu, 10 Aug 2023 05:58:36 +0000 (07:58 +0200)
commit74a5a66fb422759961d78a7751a1f0b6b06b80f6
tree1a447313fb5211888ed8dfafbd02ac87e5823c8c
parentb134b30f7f069e563a94fe4e5187d15f08419830
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>
drivers/media/cec/platform/tegra/tegra_cec.c