diff options
author | 2025-07-23 07:53:25 +0200 | |
---|---|---|
committer | 2025-07-24 11:42:22 +0200 | |
commit | 335fb3d29893a49fc3e68e8dee450314d65a60f6 (patch) | |
tree | 8b05310a5df6479a1b13f411c12a479b1275273f | |
parent | pc104: move PC104 option to drivers/Kconfig (diff) | |
download | wireguard-linux-335fb3d29893a49fc3e68e8dee450314d65a60f6.tar.xz wireguard-linux-335fb3d29893a49fc3e68e8dee450314d65a60f6.zip |
bus: moxtet: 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)" <jirislaby@kernel.org>
Reviewed-by: Marek BehĂșn <kabel@kernel.org>
Link: https://lore.kernel.org/r/20250723055325.1800024-1-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/bus/moxtet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bus/moxtet.c b/drivers/bus/moxtet.c index 6c3e5c5dae10..7ce61d629a87 100644 --- a/drivers/bus/moxtet.c +++ b/drivers/bus/moxtet.c @@ -737,8 +737,7 @@ static int moxtet_irq_setup(struct moxtet *moxtet) { int i, ret; - moxtet->irq.domain = irq_domain_create_simple(of_fwnode_handle(moxtet->dev->of_node), - MOXTET_NIRQS, 0, + moxtet->irq.domain = irq_domain_create_simple(dev_fwnode(moxtet->dev), MOXTET_NIRQS, 0, &moxtet_irq_domain, moxtet); if (moxtet->irq.domain == NULL) { dev_err(moxtet->dev, "Could not add IRQ domain\n"); |