Commit a0be2005 authored by Jiri Slaby (SUSE)'s avatar Jiri Slaby (SUSE) Committed by Krzysztof Kozlowski
Browse files

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: default avatarJiri 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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
parent e18c3f5c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1455,8 +1455,8 @@ static int gpmc_setup_irq(struct gpmc_device *gpmc)
	gpmc->irq_chip.irq_unmask = gpmc_irq_unmask;
	gpmc->irq_chip.irq_set_type = gpmc_irq_set_type;

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