 3ccdc15c6a
			
		
	
	3ccdc15c6a
	
	
	
		
			
			Add multiple patch to make the package compilable again. Aside from some fixup of obvius wrong code, some real fix were needed. This fix any compilation warning found on compiling the package on bcm47xx. (omitted since they are too much) The real problem of this package was the missing MODULE_LICENSE now mandatory even without WERROR. Set to Proprietary. And the big blocker is that Broadcom provided an object file targetting an old kernel version. The module on modprobe try to find the symbol printk but printk was dropped and replaced to _printk. To handle this change we use objcopy tool to rename the symbol to the new name permitting a correct modprobe and creation of .ko Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			452 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			452 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/driver/aiutils.c
 | |
| +++ b/driver/aiutils.c
 | |
| @@ -228,9 +228,10 @@ ai_scan(si_t *sih, void *regs, uint devid)
 | |
|  		do {
 | |
|  			asd = get_asd(sih, &eromptr, 0, j, AD_ST_SLAVE, &addrl, &addrh,
 | |
|  			              &sizel, &sizeh);
 | |
| -			if ((asd != 0) && (j == 1) && (sizel == SI_CORE_SIZE))
 | |
| +			if ((asd != 0) && (j == 1) && (sizel == SI_CORE_SIZE)) {
 | |
|  				sii->coresba2[idx] = addrl;
 | |
|  				sii->coresba2_size[idx] = sizel;
 | |
| +			}
 | |
|  			j++;
 | |
|  		} while (asd != 0);
 | |
|  
 |