projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gpio-button-hotplug: remove #ifdef CONFIG_HOTPLUG, it is gone in newer kernels (fixes...
[openwrt/svn-archive/archive.git]
/
package
/
kernel
/
gpio-button-hotplug
/
src
/
gpio-button-hotplug.c
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 6b69d2751c7c4470bf39afc4068580a02b9e08af..c997e35803a23f9aa3cb4d56778fc6eb0866b150 100644
(file)
--- 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;
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;
}
(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;
struct gpio_keys_button_dev {
int polled;