]> git.baikalelectronics.ru Git - kernel.git/commit
media: mediatek: vcodec: Drop platform_get_resource(IORESOURCE_IRQ)
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 17 Jun 2022 20:39:06 +0000 (21:39 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 27 Sep 2022 08:24:44 +0000 (10:24 +0200)
commit7d634a5a51c477a33b31dd82948da6e2ecf770f1
treeb7da67334c1b67868745c4a36b26fdce4d37cdb1
parentd0d2cd4b569b85be0377bc64775d31b7c43189a0
media: mediatek: vcodec: Drop platform_get_resource(IORESOURCE_IRQ)

Commit 55098b87fc23 ("of/platform: Drop static setup of IRQ resource
from DT core") removed support for calling platform_get_resource(...,
IORESOURCE_IRQ, ...) on DT-based drivers, but the probe() function of
mtk-vcodec's encoder was still making use of it. This caused the encoder
driver to fail probe.

Since the platform_get_resource() call was only being used to check for
the presence of the interrupt (its returned resource wasn't even used)
and platform_get_irq() was already being used to get the IRQ, simply
drop the use of platform_get_resource(IORESOURCE_IRQ) and handle the
failure of platform_get_irq(), to get the driver probing again.

[hverkuil: drop unused struct resource *res]

Fixes: 55098b87fc23 ("of/platform: Drop static setup of IRQ resource from DT core")
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/vcodec/mtk_vcodec_enc_drv.c