lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 24 Mar 2022 15:12:37 +0100 From: Clément Léger <clement.leger@...tlin.com> To: Philipp Zabel <p.zabel@...gutronix.de>, Rob Herring <robh+dt@...nel.org>, Frank Rowand <frowand.list@...il.com>, Lars Povlsen <lars.povlsen@...rochip.com>, Steen Hegelund <Steen.Hegelund@...rochip.com>, UNGLinuxDriver@...rochip.com Cc: Thomas Petazzoni <thomas.petazzoni@...tlin.com>, Alexandre Belloni <alexandre.belloni@...tlin.com>, Allan Nielsen <allan.nielsen@...rochip.com>, linux-kernel@...r.kernel.org, devicetree@...r.kernel.org, Clément Léger <clement.leger@...tlin.com> Subject: [PATCH v2 3/3] reset: mchp: sparx5: set fwnode field of reset controller 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@...tlin.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
Powered by blists - more mailing lists