aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/microchip/ksz_common.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2025-06-11 10:43:43 +0000
committerJakub Kicinski <[email protected]>2025-06-13 01:46:37 +0000
commit6d4e01d29d87356924f1521ca6df7a364e948f13 (patch)
tree724cff7508fb12e5df3a7ce4d1956ccb67313ed4 /drivers/net/dsa/microchip/ksz_common.c
parentdt-bindings: net: renesas-gbeth: Add support for RZ/G3E (R9A09G047) SoC (diff)
downloadkernel-6d4e01d29d87356924f1521ca6df7a364e948f13.tar.gz
kernel-6d4e01d29d87356924f1521ca6df7a364e948f13.zip
net: Use dev_fwnode()
irq_domain_create_simple() takes fwnode as the first argument. It can be extracted from the struct device using dev_fwnode() helper instead of using of_node with of_fwnode_handle(). So use the dev_fwnode() helper. Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/dsa/microchip/ksz_common.c')
-rw-r--r--drivers/net/dsa/microchip/ksz_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c
index 7c142c17b3f6..6e1daf0018bc 100644
--- a/drivers/net/dsa/microchip/ksz_common.c
+++ b/drivers/net/dsa/microchip/ksz_common.c
@@ -2786,8 +2786,7 @@ static int ksz_irq_common_setup(struct ksz_device *dev, struct ksz_irq *kirq)
kirq->dev = dev;
kirq->masked = ~0;
- kirq->domain = irq_domain_create_simple(of_fwnode_handle(dev->dev->of_node),
- kirq->nirqs, 0,
+ kirq->domain = irq_domain_create_simple(dev_fwnode(dev->dev), kirq->nirqs, 0,
&ksz_irq_domain_ops, kirq);
if (!kirq->domain)
return -ENOMEM;