summaryrefslogtreecommitdiff
path: root/package/button-hotplug/src/button-hotplug.c
diff options
context:
space:
mode:
Diffstat (limited to 'package/button-hotplug/src/button-hotplug.c')
-rw-r--r--package/button-hotplug/src/button-hotplug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/button-hotplug/src/button-hotplug.c b/package/button-hotplug/src/button-hotplug.c
index f76b9277fd..4bdf36435a 100644
--- a/package/button-hotplug/src/button-hotplug.c
+++ b/package/button-hotplug/src/button-hotplug.c
@@ -46,6 +46,10 @@
#define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args )
+#ifndef BIT_MASK
+#define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
+#endif
+
struct bh_priv {
unsigned long seen[BH_BTN_COUNT];
struct input_handle handle;