Skip to content

Commit a0be200

Browse files
Jiri Slaby (SUSE)krzk
authored andcommitted
memory: omap-gpmx: 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(). Signed-off-by: Jiri Slaby (SUSE) <[email protected]> Link: https://lore.kernel.org/r/[email protected] [krzk: Dropped redundant parts of commit msg] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent e18c3f5 commit a0be200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/memory/omap-gpmc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,8 +1455,8 @@ static int gpmc_setup_irq(struct gpmc_device *gpmc)
14551455
gpmc->irq_chip.irq_unmask = gpmc_irq_unmask;
14561456
gpmc->irq_chip.irq_set_type = gpmc_irq_set_type;
14571457

1458-
gpmc_irq_domain = irq_domain_create_linear(of_fwnode_handle(gpmc->dev->of_node),
1459-
gpmc->nirqs, &gpmc_irq_domain_ops, gpmc);
1458+
gpmc_irq_domain = irq_domain_create_linear(dev_fwnode(gpmc->dev), gpmc->nirqs,
1459+
&gpmc_irq_domain_ops, gpmc);
14601460
if (!gpmc_irq_domain) {
14611461
dev_err(gpmc->dev, "IRQ domain add failed\n");
14621462
return -ENODEV;

0 commit comments

Comments
 (0)