Skip to content

Commit

Permalink
gpio-button-hotplug: fix probe failed
Browse files Browse the repository at this point in the history
  • Loading branch information
aiamadeus committed Jan 31, 2024
1 parent e0ea643 commit 2843c0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/kernel/gpio-button-hotplug/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk

define KernelPackage/gpio-button-hotplug
SUBMENU:=Other modules
SUBMENU:=GPIO support
TITLE:=Simple GPIO Button Hotplug driver
FILES:=$(PKG_BUILD_DIR)/gpio-button-hotplug.ko
AUTOLOAD:=$(call AutoLoad,30,gpio-button-hotplug,1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static int gpio_keys_button_probe(struct platform_device *pdev,
struct device_node *child =
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,
of_fwnode_handle(child), "gpios", GPIOD_IN,
desc);
Expand Down

0 comments on commit 2843c0b

Please sign in to comment.