Commit 747aeec9 authored by Yang Yingliang's avatar Yang Yingliang Committed by Philipp Zabel

reset: lantiq: use devm_reset_controller_register()

Use devm_reset_controller_register() for the reset controller
registration.
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210517032648.2969609-1-yangyingliang@huawei.comSigned-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
parent 6eed6a4b
......@@ -186,7 +186,7 @@ static int lantiq_rcu_reset_probe(struct platform_device *pdev)
priv->rcdev.of_xlate = lantiq_rcu_reset_xlate;
priv->rcdev.of_reset_n_cells = 2;
return reset_controller_register(&priv->rcdev);
return devm_reset_controller_register(&pdev->dev, &priv->rcdev);
}
static const struct of_device_id lantiq_rcu_reset_dt_ids[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment