mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
gpio-button-hotplug: fix probe failed
This commit is contained in:
parent
e0ea643c5b
commit
2843c0b911
@ -15,7 +15,7 @@ PKG_LICENSE:=GPL-2.0
|
|||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define KernelPackage/gpio-button-hotplug
|
define KernelPackage/gpio-button-hotplug
|
||||||
SUBMENU:=Other modules
|
SUBMENU:=GPIO support
|
||||||
TITLE:=Simple GPIO Button Hotplug driver
|
TITLE:=Simple GPIO Button Hotplug driver
|
||||||
FILES:=$(PKG_BUILD_DIR)/gpio-button-hotplug.ko
|
FILES:=$(PKG_BUILD_DIR)/gpio-button-hotplug.ko
|
||||||
AUTOLOAD:=$(call AutoLoad,30,gpio-button-hotplug,1)
|
AUTOLOAD:=$(call AutoLoad,30,gpio-button-hotplug,1)
|
||||||
|
@ -538,7 +538,7 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
|
|||||||
struct device_node *child =
|
struct device_node *child =
|
||||||
of_get_next_child(dev->of_node, prev);
|
of_get_next_child(dev->of_node, prev);
|
||||||
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)
|
||||||
bdata->gpiod = devm_fwnode_gpiod_get(dev,
|
bdata->gpiod = devm_fwnode_gpiod_get(dev,
|
||||||
of_fwnode_handle(child), "gpios", GPIOD_IN,
|
of_fwnode_handle(child), "gpios", GPIOD_IN,
|
||||||
desc);
|
desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user