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

misc: 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>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250611104348.192092-14-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
17481c41 bf7b4a0e

+1 -3
+1 -3
drivers/misc/hi6421v600-irq.c
··· 214 214 static int hi6421v600_irq_probe(struct platform_device *pdev) 215 215 { 216 216 struct device *pmic_dev = pdev->dev.parent; 217 - struct device_node *np = pmic_dev->of_node; 218 217 struct platform_device *pmic_pdev; 219 218 struct device *dev = &pdev->dev; 220 219 struct hi6421v600_irq *priv; ··· 253 254 if (!priv->irqs) 254 255 return -ENOMEM; 255 256 256 - priv->domain = irq_domain_create_simple(of_fwnode_handle(np), 257 - PMIC_IRQ_LIST_MAX, 0, 257 + priv->domain = irq_domain_create_simple(dev_fwnode(pmic_dev), PMIC_IRQ_LIST_MAX, 0, 258 258 &hi6421v600_domain_ops, priv); 259 259 if (!priv->domain) { 260 260 dev_err(dev, "Failed to create IRQ domain\n");