mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 13:19:56 -04:00
Merge tag 'v5.4-rc5' into next
Sync up with mainline.
This commit is contained in:
@@ -232,10 +232,7 @@ static int da9063_onkey_probe(struct platform_device *pdev)
|
||||
onkey->input->phys = onkey->phys;
|
||||
onkey->input->dev.parent = &pdev->dev;
|
||||
|
||||
if (onkey->key_power)
|
||||
input_set_capability(onkey->input, EV_KEY, KEY_POWER);
|
||||
|
||||
input_set_capability(onkey->input, EV_KEY, KEY_SLEEP);
|
||||
input_set_capability(onkey->input, EV_KEY, KEY_POWER);
|
||||
|
||||
INIT_DELAYED_WORK(&onkey->work, da9063_poll_on);
|
||||
|
||||
|
||||
@@ -92,11 +92,18 @@ soc_button_device_create(struct platform_device *pdev,
|
||||
continue;
|
||||
|
||||
gpio = soc_button_lookup_gpio(&pdev->dev, info->acpi_index);
|
||||
if (gpio < 0 && gpio != -ENOENT) {
|
||||
error = gpio;
|
||||
goto err_free_mem;
|
||||
} else if (!gpio_is_valid(gpio)) {
|
||||
/* Skip GPIO if not present */
|
||||
if (!gpio_is_valid(gpio)) {
|
||||
/*
|
||||
* Skip GPIO if not present. Note we deliberately
|
||||
* ignore -EPROBE_DEFER errors here. On some devices
|
||||
* Intel is using so called virtual GPIOs which are not
|
||||
* GPIOs at all but some way for AML code to check some
|
||||
* random status bits without need a custom opregion.
|
||||
* In some cases the resources table we parse points to
|
||||
* such a virtual GPIO, since these are not real GPIOs
|
||||
* we do not have a driver for these so they will never
|
||||
* show up, therefore we ignore -EPROBE_DEFER.
|
||||
*/
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user