1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-06-23 16:17:28 +02:00

button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 40839
This commit is contained in:
Felix Fietkau 2014-05-23 22:13:13 +00:00
parent 6ee4d92e34
commit d9bbeff7c8

View File

@ -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)