diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-05-17 06:26:48 +0300 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2021-06-07 12:26:31 +0300 |
commit | 747aeec9ac0612fa107a6032d4e475112e8820fb (patch) | |
tree | 538e8c872b67361aecb35c7a54a011809dab0301 /drivers | |
parent | 6eed6a4bc05ec28f136f222df0a3fb37e57acc0f (diff) | |
download | linux-747aeec9ac0612fa107a6032d4e475112e8820fb.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/reset/reset-lantiq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/reset-lantiq.c b/drivers/reset/reset-lantiq.c index ac41d093de13..b936cfe85641 100644 --- a/drivers/reset/reset-lantiq.c +++ b/drivers/reset/reset-lantiq.c @@ -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[] = { |