diff options
| author | Andy Shevchenko <[email protected]> | 2022-11-14 18:46:25 +0000 |
|---|---|---|
| committer | Bartosz Golaszewski <[email protected]> | 2022-11-15 10:53:05 +0000 |
| commit | 77289b2f5aa3535a2e49b448c6afb36f5526016a (patch) | |
| tree | 3757b87c645c7a3b4dc94372d84712f775f3297e /drivers/gpio/gpiolib-of.c | |
| parent | gpiolib: add support for software nodes (diff) | |
| download | kernel-77289b2f5aa3535a2e49b448c6afb36f5526016a.tar.gz kernel-77289b2f5aa3535a2e49b448c6afb36f5526016a.zip | |
gpiolib: of: Prepare of_mm_gpiochip_add_data() for fwnode
GPIO library is getting rid of of_node, fwnode should be utilized instead.
Prepare of_mm_gpiochip_add_data() for fwnode.
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Reviewed-by: Dmitry Torokhov <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
| -rw-r--r-- | drivers/gpio/gpiolib-of.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 596b8e21700e..c9b0c9fdeca8 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -934,8 +934,8 @@ int of_mm_gpiochip_add_data(struct device_node *np, if (mm_gc->save_regs) mm_gc->save_regs(mm_gc); - of_node_put(mm_gc->gc.of_node); - mm_gc->gc.of_node = of_node_get(np); + fwnode_handle_put(mm_gc->gc.fwnode); + mm_gc->gc.fwnode = fwnode_handle_get(of_fwnode_handle(np)); ret = gpiochip_add_data(gc, data); if (ret) |
