projects
/
openwrt
/
staging
/
neocturne.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34a1fe9
)
fix button-hotplug build on kernel versions where BIT_MASK is not defined (< 2.6.24)
author
Nicolas Thill
<nico@openwrt.org>
Wed, 24 Sep 2008 13:27:46 +0000
(13:27 +0000)
committer
Nicolas Thill
<nico@openwrt.org>
Wed, 24 Sep 2008 13:27:46 +0000
(13:27 +0000)
SVN-Revision: 12682
package/button-hotplug/src/button-hotplug.c
patch
|
blob
|
history
diff --git
a/package/button-hotplug/src/button-hotplug.c
b/package/button-hotplug/src/button-hotplug.c
index f76b9277fdcc89ba58b0de5c93aa6229d19674b5..4bdf36435af9c735b0ccbd0b82266c95e1334525 100644
(file)
--- 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;