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>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250612084627.217341-1-jirislaby@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
 static int stm32_adc_irq_probe(struct platform_device *pdev,
                               struct stm32_adc_priv *priv)
 {
-       struct device_node *np = pdev->dev.of_node;
        unsigned int i;
 
        /*
                        return priv->irq[i];
        }
 
-       priv->domain = irq_domain_create_simple(of_fwnode_handle(np),
+       priv->domain = irq_domain_create_simple(dev_fwnode(&pdev->dev),
                                                STM32_ADC_MAX_ADCS, 0,
                                                &stm32_adc_domain_ops,
                                                priv);