diff options
author | Nicolas Thill <nico@openwrt.org> | 2008-09-24 13:27:46 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2008-09-24 13:27:46 +0000 |
commit | d6f6cf7ea7781aa2792764f3b5d4a7895c0703c5 (patch) | |
tree | da1ba381fd5843d4d36061987b79305a1a7beb4d /package/button-hotplug/src/button-hotplug.c | |
parent | b360fac48827a25bded7fdadaaad4a7893f1f8b0 (diff) | |
download | upstream-d6f6cf7ea7781aa2792764f3b5d4a7895c0703c5.tar.gz upstream-d6f6cf7ea7781aa2792764f3b5d4a7895c0703c5.tar.bz2 upstream-d6f6cf7ea7781aa2792764f3b5d4a7895c0703c5.zip |
fix button-hotplug build on kernel versions where BIT_MASK is not defined (< 2.6.24)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12682 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/button-hotplug/src/button-hotplug.c')
-rw-r--r-- | package/button-hotplug/src/button-hotplug.c | 4 |
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; |