fix button-hotplug build on kernel versions where BIT_MASK is not defined (< 2.6.24)
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 24 Sep 2008 13:27:46 +0000 (13:27 +0000)
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 24 Sep 2008 13:27:46 +0000 (13:27 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12682 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/button-hotplug/src/button-hotplug.c

index f76b927..4bdf364 100644 (file)
 
 #define BH_ERR(fmt, args...) printk(KERN_ERR "%s: " fmt, DRV_NAME, ##args )
 
 
 #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;
 struct bh_priv {
        unsigned long           seen[BH_BTN_COUNT];
        struct input_handle     handle;
This page took 0.02978 seconds and 4 git commands to generate.