mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
media: renesas: vsp1: Make reset control optional to support platforms without a reset line
Switch the VSP1 driver to use devm_reset_control_get_optional_shared() when requesting its reset control. Some newer Renesas SoCs integrating VSP1 such as RZ/T2H do not provide a reset line for the VSP IP block. Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Link: https://patch.msgid.link/20260430100929.1088281-4-prabhakar.mahadev-lad.rj@bp.renesas.com Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
e98a1f1578
commit
284a6530a4
|
|
@ -947,7 +947,7 @@ static int vsp1_probe(struct platform_device *pdev)
|
|||
if (irq < 0)
|
||||
return irq;
|
||||
|
||||
vsp1->rstc = devm_reset_control_get_shared(&pdev->dev, NULL);
|
||||
vsp1->rstc = devm_reset_control_get_optional_shared(&pdev->dev, NULL);
|
||||
if (IS_ERR(vsp1->rstc))
|
||||
return dev_err_probe(&pdev->dev, PTR_ERR(vsp1->rstc),
|
||||
"failed to get reset control\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user