Skip to content

Commit 6ada8e2

Browse files
Ovidiu Panaitalexandrebelloni
authored andcommitted
rtc: renesas-rtca3: Add support for multiple reset lines
Switch from devm_reset_control_get_shared() to devm_reset_control_array_get_shared() when retrieving resets. The RZ/V2H SoC requires two resets for the RTC block instead of one, so this will allow to handle multiple resets without additional changes. Signed-off-by: Ovidiu Panait <ovidiu.panait.rb@renesas.com> Reviewed-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Link: https://patch.msgid.link/20251107210706.45044-3-ovidiu.panait.rb@renesas.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
1 parent 4800046 commit 6ada8e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/rtc/rtc-renesas-rtca3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ static int rtca3_probe(struct platform_device *pdev)
726726
if (ret)
727727
return ret;
728728

729-
priv->rstc = devm_reset_control_get_shared(dev, NULL);
729+
priv->rstc = devm_reset_control_array_get_shared(dev);
730730
if (IS_ERR(priv->rstc))
731731
return PTR_ERR(priv->rstc);
732732

0 commit comments

Comments
 (0)