mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
gpio-button-hotplug: fix linux 6.2 build failure
devm_gpiod_get_from_of_node() was removed since linux 6.2. devm_fwnode_gpiod_get() is the recommended replacement. Signed-off-by: Weijie Gao <hackpascal@gmail.com> Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
9415e0a37d
commit
0983191cb6
@ -540,7 +540,7 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
||||
bdata->gpiod = devm_fwnode_gpiod_get(dev,
|
||||
of_fwnode_handle(child), "gpios", GPIOD_IN,
|
||||
of_fwnode_handle(child), NULL, GPIOD_IN,
|
||||
desc);
|
||||
#else
|
||||
bdata->gpiod = devm_gpiod_get_from_of_node(dev,
|
||||
|
Loading…
Reference in New Issue
Block a user