mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 20:54:10 +08:00
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 <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20220503151517.59115-1-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
8f6a83daf7
commit
85437018eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user