mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 15:43:25 +00:00
gpio-button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels (fixes #16413)
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40838
This commit is contained in:
parent
d90ec19e95
commit
6ee4d92e34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user