Skip to contentSkip to conversation

clk: renesas: rcar-usb2-clock-sel: Replace devm_reset_control_array_get()

PATCH In review Yejune Deng 2 participants 2 messages Nov 3, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: renesas: rcar-usb2-clock-sel: Replace devm_reset_control_array_get()

devm_reset_control_array_get_shared() looks more readable

---
 drivers/clk/renesas/rcar-usb2-clock-sel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clk/renesas/rcar-usb2-clock-sel.c +1 -1
index d4c0298..3abafd7 100644
@@ -160,7 +160,7 @@ static int rcar_usb2_clock_sel_probe(struct platform_device *pdev)
 	if (ret < 0)
 		return ret;
 
-	priv->rsts = devm_reset_control_array_get(dev, true, false);
+	priv->rsts = devm_reset_control_array_get_shared(dev);
 	if (IS_ERR(priv->rsts))
 		return PTR_ERR(priv->rsts);
 
Signature · 1 line
1.9.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Yejune Deng

devm_reset_control_array_get_shared() looks more readable

i.e. will queue in renesas-clk-for-v5.11.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds