reset: lantiq: use devm_reset_controller_register()
Use devm_reset_controller_register() for the reset controller registration. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20210517032648.2969609-1-yangyingliang@huawei.com Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
This commit is contained in:
Родитель
6eed6a4bc0
Коммит
747aeec9ac
|
@ -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_xlate = lantiq_rcu_reset_xlate;
|
||||||
priv->rcdev.of_reset_n_cells = 2;
|
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[] = {
|
static const struct of_device_id lantiq_rcu_reset_dt_ids[] = {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче