diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 22:13:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-05-23 22:13:10 +0000 |
commit | 85b845cbbce5693d59012bfc62bcb02d00bb1800 (patch) | |
tree | 5e62b0b55179e1e8b3e3f245b86d3edb9e42c2e6 /package | |
parent | 25b372fe9a842c1d0dc699f65ef9e17755e860f1 (diff) | |
download | upstream-85b845cbbce5693d59012bfc62bcb02d00bb1800.tar.gz upstream-85b845cbbce5693d59012bfc62bcb02d00bb1800.tar.bz2 upstream-85b845cbbce5693d59012bfc62bcb02d00bb1800.zip |
gpio-button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels (fixes #16413)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40838 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 7 |
1 files changed, 0 insertions, 7 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 6b69d2751c..c997e35803 100644 --- a/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c +++ b/package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c @@ -224,7 +224,6 @@ static int button_hotplug_create_event(const char *name, unsigned int type, /* -------------------------------------------------------------------------*/ -#ifdef CONFIG_HOTPLUG static int button_get_index(unsigned int code) { int i; @@ -256,12 +255,6 @@ static void button_hotplug_event(struct gpio_keys_button_data *data, (seen - priv->seen) / HZ, value); priv->seen = seen; } -#else -static void button_hotplug_event(struct gpio_keys_button_data *data, - unsigned int type, int value) -{ -} -#endif /* CONFIG_HOTPLUG */ struct gpio_keys_button_dev { int polled; |