mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-11 19:19:42 +00:00
media: davinci/vpif.c: drop unnecessary cast
DEFINE_RES_IRQ_NAMED already casts to (struct resource), so no need to do it again. This fixes a sparse warning: vpif.c:483:20: warning: cast to non-scalar Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
b6a1af0362
commit
9996b96554
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ static int vpif_probe(struct platform_device *pdev)
|
|||
ret = irq;
|
||||
goto err_put_rpm;
|
||||
}
|
||||
res_irq = (struct resource)DEFINE_RES_IRQ_NAMED(irq, of_node_full_name(pdev->dev.of_node));
|
||||
res_irq = DEFINE_RES_IRQ_NAMED(irq, of_node_full_name(pdev->dev.of_node));
|
||||
res_irq.flags |= irq_get_trigger_type(irq);
|
||||
|
||||
pdev_capture = kzalloc(sizeof(*pdev_capture), GFP_KERNEL);
|
||||
|
|
Loading…
Reference in a new issue