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

gpio: visconti: Replace of_node_to_fwnode() with more suitable API

of_node_to_fwnode() is a IRQ domain specific implementation of
of_fwnode_handle(). Replace the former with more suitable API.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240822225818.707550-1-andy.shevchenko@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

authored by

Andy Shevchenko and committed by
Bartosz Golaszewski
35ea2624 6d6395cd

+3 -2
+3 -2
drivers/gpio/gpio-visconti.c
··· 8 8 * Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> 9 9 */ 10 10 11 + #include <linux/bitops.h> 11 12 #include <linux/gpio/driver.h> 12 13 #include <linux/init.h> 13 14 #include <linux/interrupt.h> ··· 16 15 #include <linux/io.h> 17 16 #include <linux/of_irq.h> 18 17 #include <linux/platform_device.h> 18 + #include <linux/property.h> 19 19 #include <linux/seq_file.h> 20 - #include <linux/bitops.h> 21 20 22 21 /* register offset */ 23 22 #define GPIO_DIR 0x00 ··· 203 202 204 203 girq = &priv->gpio_chip.irq; 205 204 gpio_irq_chip_set_chip(girq, &visconti_gpio_irq_chip); 206 - girq->fwnode = of_node_to_fwnode(dev->of_node); 205 + girq->fwnode = dev_fwnode(dev); 207 206 girq->parent_domain = parent; 208 207 girq->child_to_parent_hwirq = visconti_gpio_child_to_parent_hwirq; 209 208 girq->populate_parent_alloc_arg = visconti_gpio_populate_parent_fwspec;