mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 16:43:09 +02:00
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
This commit is contained in:
parent
04ccc3ccb1
commit
8315549c47
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user