aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/gpio-button-hotplug/src
diff options
context:
space:
mode:
Diffstat (limited to 'package/kernel/gpio-button-hotplug/src')
-rw-r--r--package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
index 9cbee21e0a..74c2ecaa2e 100644
--- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
+++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c
@@ -509,7 +509,7 @@ static int gpio_keys_polled_probe(struct platform_device *pdev)
}
bdata->can_sleep = gpio_cansleep(gpio);
- bdata->last_state = 0;
+ bdata->last_state = gpio_button_get_value(button, bdata);
bdata->threshold = DIV_ROUND_UP(button->debounce_interval,
pdata->poll_interval);
}