From 6ee4d92e3469de50fbcf486a5bfc673b4c12a142 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 23 May 2014 22:13:10 +0000 Subject: gpio-button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels (fixes #16413) Signed-off-by: Felix Fietkau SVN-Revision: 40838 --- package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'package/kernel/gpio-button-hotplug/src') 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; -- cgit v1.2.3