forked from mirrors/linux
		
	gpio: ich: set regs and reglen for i3100 and ich6 chipset
This patch fixes kernel NULL pointer BUG introduced by the following commit:
b667cf488a
gpio: ich: Add support for multiple register addresses.
Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com>
Tested-by: Eric Paris <eparis@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
			
			
This commit is contained in:
		
							parent
							
								
									89ca3b8819
								
							
						
					
					
						commit
						a7008ee1a4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		|  | @ -305,6 +305,8 @@ static struct ichx_desc ich6_desc = { | ||||||
| 
 | 
 | ||||||
| 	.ngpio = 50, | 	.ngpio = 50, | ||||||
| 	.have_blink = true, | 	.have_blink = true, | ||||||
|  | 	.regs = ichx_regs, | ||||||
|  | 	.reglen = ichx_reglen, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /* Intel 3100 */ | /* Intel 3100 */ | ||||||
|  | @ -324,6 +326,8 @@ static struct ichx_desc i3100_desc = { | ||||||
| 	.uses_gpe0 = true, | 	.uses_gpe0 = true, | ||||||
| 
 | 
 | ||||||
| 	.ngpio = 50, | 	.ngpio = 50, | ||||||
|  | 	.regs = ichx_regs, | ||||||
|  | 	.reglen = ichx_reglen, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| /* ICH7 and ICH8-based */ | /* ICH7 and ICH8-based */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Vincent Donnefort
						Vincent Donnefort