From: Samuel Holland Date: Tue, 25 Jul 2023 00:40:39 +0000 (-0700) Subject: gpio: sifive: Directly use the device's fwnode X-Git-Tag: v6.6-rc1~164^2~72 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5d472a7ef0f35e39906ef0eafa0c76727949f56b;p=thirdparty%2Fkernel%2Flinux.git gpio: sifive: Directly use the device's fwnode There is no need to convert dev->of_node back to a fwnode_handle. Signed-off-by: Samuel Holland Reviewed-by: Andy Shevchenko Signed-off-by: Bartosz Golaszewski --- diff --git a/drivers/gpio/gpio-sifive.c b/drivers/gpio/gpio-sifive.c index efab7b58f7391..a1b5bae05a353 100644 --- a/drivers/gpio/gpio-sifive.c +++ b/drivers/gpio/gpio-sifive.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -255,7 +256,7 @@ static int sifive_gpio_probe(struct platform_device *pdev) chip->gc.owner = THIS_MODULE; girq = &chip->gc.irq; gpio_irq_chip_set_chip(girq, &sifive_gpio_irqchip); - girq->fwnode = of_node_to_fwnode(node); + girq->fwnode = dev_fwnode(dev); girq->parent_domain = parent; girq->child_to_parent_hwirq = sifive_gpio_child_to_parent_hwirq; girq->handler = handle_bad_irq;