summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-23 22:13:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-23 22:13:13 +0000
commitd9bbeff7c8352244e430db36234c9314e41d787f (patch)
tree41188cbcb03ccfec085e05626acfdb730fe31dc3 /package
parent6ee4d92e3469de50fbcf486a5bfc673b4c12a142 (diff)
downloadmtk-20170518-d9bbeff7c8352244e430db36234c9314e41d787f.zip
mtk-20170518-d9bbeff7c8352244e430db36234c9314e41d787f.tar.gz
mtk-20170518-d9bbeff7c8352244e430db36234c9314e41d787f.tar.bz2
button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40839
Diffstat (limited to 'package')
-rw-r--r--package/kernel/button-hotplug/src/button-hotplug.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/package/kernel/button-hotplug/src/button-hotplug.c b/package/kernel/button-hotplug/src/button-hotplug.c
index 8f84eb1..41fdf3a 100644
--- a/package/kernel/button-hotplug/src/button-hotplug.c
+++ b/package/kernel/button-hotplug/src/button-hotplug.c
@@ -208,7 +208,6 @@ static int button_hotplug_create_event(const char *name, unsigned long seen,
/* -------------------------------------------------------------------------*/
-#ifdef CONFIG_HOTPLUG
static int button_get_index(unsigned int code)
{
int i;
@@ -239,12 +238,6 @@ static void button_hotplug_event(struct input_handle *handle,
(seen - priv->seen[btn]) / HZ, value);
priv->seen[btn] = seen;
}
-#else
-static void button_hotplug_event(struct input_handle *handle,
- unsigned int type, unsigned int code, int value)
-{
-}
-#endif /* CONFIG_HOTPLUG */
static int button_hotplug_connect(struct input_handler *handler,
struct input_dev *dev, const struct input_device_id *id)