]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: platform: rzg2l-cru: rzg2l-video: Move request_irq() to probe()
authorBiju Das <biju.das.jz@bp.renesas.com>
Mon, 26 Aug 2024 11:07:30 +0000 (12:07 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 16 Oct 2024 07:32:40 +0000 (09:32 +0200)
commit0c200daa5780f3d0ba6fff4b6bf9e4bb924fa5ca
treef3d5786fe39499860f8d7e8f4bbdc183e8e2179c
parent0d5c92cde4d38825eeadf5b4e1534350f80a9924
media: platform: rzg2l-cru: rzg2l-video: Move request_irq() to probe()

Move request_irq() to probe(), in order to avoid requesting IRQ during
device start which happens frequently. As this function is in probe(), it
is better to replace it with its devm variant for managing the resource
efficiently.

While at it, drop the IRQF_SHARED flag as currently there is a single user
for this IRQ.

Suggested-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/renesas/rzg2l-cru/rzg2l-core.c
drivers/media/platform/renesas/rzg2l-cru/rzg2l-cru.h
drivers/media/platform/renesas/rzg2l-cru/rzg2l-video.c