Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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) <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20250611104348.192092-12-jirislaby@kernel.org
[krzk: Dropped redundant parts of commit msg]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

authored by

Jiri Slaby (SUSE) and committed by
Krzysztof Kozlowski
a0be2005 e18c3f5c

+2 -2
+2 -2
drivers/memory/omap-gpmc.c
··· 1455 1455 gpmc->irq_chip.irq_unmask = gpmc_irq_unmask; 1456 1456 gpmc->irq_chip.irq_set_type = gpmc_irq_set_type; 1457 1457 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); 1460 1460 if (!gpmc_irq_domain) { 1461 1461 dev_err(gpmc->dev, "IRQ domain add failed\n"); 1462 1462 return -ENODEV;