diff options
| author | Jiri Slaby (SUSE) <[email protected]> | 2025-06-11 10:43:43 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-06-13 01:46:37 +0000 |
| commit | 6d4e01d29d87356924f1521ca6df7a364e948f13 (patch) | |
| tree | 724cff7508fb12e5df3a7ce4d1956ccb67313ed4 /drivers/net/dsa/microchip/ksz_ptp.c | |
| parent | dt-bindings: net: renesas-gbeth: Add support for RZ/G3E (R9A09G047) SoC (diff) | |
| download | kernel-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_ptp.c')
| -rw-r--r-- | drivers/net/dsa/microchip/ksz_ptp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/dsa/microchip/ksz_ptp.c b/drivers/net/dsa/microchip/ksz_ptp.c index 8ab664e85f13..35fc21b1ee48 100644 --- a/drivers/net/dsa/microchip/ksz_ptp.c +++ b/drivers/net/dsa/microchip/ksz_ptp.c @@ -1130,8 +1130,8 @@ int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p) init_completion(&port->tstamp_msg_comp); - ptpirq->domain = irq_domain_create_linear(of_fwnode_handle(dev->dev->of_node), - ptpirq->nirqs, &ksz_ptp_irq_domain_ops, ptpirq); + ptpirq->domain = irq_domain_create_linear(dev_fwnode(dev->dev), ptpirq->nirqs, + &ksz_ptp_irq_domain_ops, ptpirq); if (!ptpirq->domain) return -ENOMEM; |
