Skip to contentSkip to conversation

bus: moxtet: Use dev_fwnode()

PATCH New Jiri Slaby (SUSE) 1 participant 1 message Jul 23, 2025 Arm/cz.nic turris support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/bus/moxtet.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/bus/moxtet.c +1 -2
index 6c3e5c5dae10..7ce61d629a87 100644
@@ -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");
Signature · 1 line
2.50.1