Now that reset subsystem has fwnode support, use the fwnode field of the rcdev to setup the fwnode to be used for the controller. Signed-off-by: Clément Léger <clement.leger@xxxxxxxxxxx> --- drivers/reset/reset-microchip-sparx5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/reset/reset-microchip-sparx5.c b/drivers/reset/reset-microchip-sparx5.c index 00b612a0effa..eb648b40dffd 100644 --- a/drivers/reset/reset-microchip-sparx5.c +++ b/drivers/reset/reset-microchip-sparx5.c @@ -101,7 +101,6 @@ static int mchp_sparx5_map_io(struct platform_device *pdev, int index, static int mchp_sparx5_reset_probe(struct platform_device *pdev) { - struct device_node *dn = pdev->dev.of_node; struct mchp_reset_context *ctx; int err; @@ -119,7 +118,7 @@ static int mchp_sparx5_reset_probe(struct platform_device *pdev) ctx->rcdev.owner = THIS_MODULE; ctx->rcdev.nr_resets = 1; ctx->rcdev.ops = &sparx5_reset_ops; - ctx->rcdev.of_node = dn; + ctx->rcdev.fwnode = dev_fwnode(&pdev->dev); ctx->props = device_get_match_data(&pdev->dev); return devm_reset_controller_register(&pdev->dev, &ctx->rcdev); -- 2.34.1