mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 14:34:27 -05:00 
			
		
		
		
	fix button-hotplug build on kernel versions where BIT_MASK is not defined (< 2.6.24)
SVN-Revision: 12682
This commit is contained in:
		
							parent
							
								
									34a1fe969e
								
							
						
					
					
						commit
						adea7e58b7
					
				@ -46,6 +46,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#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 {
 | 
					struct bh_priv {
 | 
				
			||||||
	unsigned long		seen[BH_BTN_COUNT];
 | 
						unsigned long		seen[BH_BTN_COUNT];
 | 
				
			||||||
	struct input_handle	handle;
 | 
						struct input_handle	handle;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user