mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-29 15:44:04 +00:00
gpio-button-hotplug: fix 6.2 build failure
devm_gpiod_get_from_of_node() was removed since linux 6.2. devm_fwnode_gpiod_get() is the recommended replacement. Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/gpio/gpiolib-devres.c?id=650f2dc970539b3344a98c4bd18efa309e66623b Signed-off-by: Robert Marko <robimarko@gmail.com> Signed-off-by: Weijie Gao <hackpascal@gmail.com>
This commit is contained in:
parent
729ad2feb3
commit
7fcbcea751
@ -538,8 +538,9 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
|
||||
struct device_node *child =
|
||||
of_get_next_child(dev->of_node, prev);
|
||||
|
||||
bdata->gpiod = devm_gpiod_get_from_of_node(dev,
|
||||
child, "gpios", 0, GPIOD_IN, desc);
|
||||
bdata->gpiod = devm_fwnode_gpiod_get(dev,
|
||||
of_fwnode_handle(child), NULL, GPIOD_IN,
|
||||
desc);
|
||||
|
||||
prev = child;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user