From: Andy Shevchenko Date: Tue, 3 May 2022 15:15:17 +0000 (+0300) Subject: pinctrl: microchip-sgpio: Switch to use fwnode instead of of_node X-Git-Tag: v6.1-rc5~1223^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=85437018eb864a4c2d9ad6ea9b2279415809e8b7;p=platform%2Fkernel%2Flinux-starfive.git pinctrl: microchip-sgpio: Switch to use fwnode instead of of_node GPIO library now accepts fwnode as a firmware node, so switch the driver to use it. Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20220503151517.59115-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij --- diff --git a/drivers/pinctrl/pinctrl-microchip-sgpio.c b/drivers/pinctrl/pinctrl-microchip-sgpio.c index 6dbe37d..6f55bf7 100644 --- a/drivers/pinctrl/pinctrl-microchip-sgpio.c +++ b/drivers/pinctrl/pinctrl-microchip-sgpio.c @@ -848,7 +848,7 @@ static int microchip_sgpio_register_bank(struct device *dev, gc = &bank->gpio; gc->label = pctl_desc->name; gc->parent = dev; - gc->of_node = to_of_node(fwnode); + gc->fwnode = fwnode; gc->owner = THIS_MODULE; gc->get_direction = microchip_sgpio_get_direction; gc->direction_input = microchip_sgpio_direction_input;