On Sat, 2 Nov 2024 10:31:41 +0100
"Csókás, Bence" <csokas.bence@xxxxxxxxx> wrote:
Hi,
From: Mesih Kilinc <mesihkilinc@xxxxxxxxx>
static struct sun4i_dma_dev *to_sun4i_dma_dev(struct dma_device *dev)
@@ -1215,6 +1218,13 @@ static int sun4i_dma_probe(struct platform_device *pdev)
return PTR_ERR(priv->clk);
}
+ if (priv->cfg->has_reset) {
+ priv->rst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
Can't we use devm_reset_control_get_optional_exclusive(), and then save
this whole has_reset bit?