Commit 6ada8e24 authored by Ovidiu Panait's avatar Ovidiu Panait Committed by Alexandre Belloni
Browse files

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: default avatarOvidiu Panait <ovidiu.panait.rb@renesas.com>
Reviewed-by: default avatarClaudiu Beznea <claudiu.beznea.uj@bp.renesas.com>
Link: https://patch.msgid.link/20251107210706.45044-3-ovidiu.panait.rb@renesas.com


Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 4800046b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -726,7 +726,7 @@ static int rtca3_probe(struct platform_device *pdev)
	if (ret)
		return ret;

	priv->rstc = devm_reset_control_get_shared(dev, NULL);
	priv->rstc = devm_reset_control_array_get_shared(dev);
	if (IS_ERR(priv->rstc))
		return PTR_ERR(priv->rstc);