media: platform: ti: fix the return value handle for platform_get_irq()
authorRuan Jinjie <ruanjinjie@huawei.com>
Mon, 31 Jul 2023 12:02:12 +0000 (14:02 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 14 Aug 2023 18:27:55 +0000 (20:27 +0200)
commit90fbb259b469e859c42edf22f476ad06a0efde38
treef6007c47394e3ead2d0496f63bd8add22894d89a
parentf312dc7cf15c5cc839502c0934e7b42c6d766cb2
media: platform: ti: 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>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/ti/am437x/am437x-vpfe.c
drivers/media/platform/ti/omap3isp/isp.c