lkml.org 
[lkml]   [2022]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v2 3/3] reset: mchp: sparx5: set fwnode field of reset controller
Date
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@bootlin.com>
---
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
\
 
 \ /
  Last update: 2022-03-24 15:16    [W:0.194 / U:2.004 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site