kernel: gpio-nct5104d remove boardname check
'In different versions of coreboot are different names of apu boardname. No need to check boardname to load module.' Signed-off-by: Lukáš Mrtvý <lukas.mrtvy@gmail.com>
This commit is contained in:
		 Lukáš Mrtvý
					Lukáš Mrtvý
				
			
				
					committed by
					
						 John Crispin
						John Crispin
					
				
			
			
				
	
			
			
			 John Crispin
						John Crispin
					
				
			
						parent
						
							af70d86d62
						
					
				
				
					commit
					d3b8e6b2a7
				
			| @@ -434,11 +434,6 @@ static int __init nct5104d_gpio_init(void) | |||||||
| 	const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR); | 	const char *board_vendor = dmi_get_system_info(DMI_BOARD_VENDOR); | ||||||
| 	const char *board_name = dmi_get_system_info(DMI_BOARD_NAME); | 	const char *board_name = dmi_get_system_info(DMI_BOARD_NAME); | ||||||
|  |  | ||||||
|  	/* Make sure we only run on PC Engine APU boards */ |  | ||||||
| 	if (!board_name || !board_vendor || strcasecmp(board_vendor, "PC Engines") || strncasecmp(board_name, "apu", 3)) { |  | ||||||
| 		return -ENODEV; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
| 	if (nct5104d_find(0x2e, &sio) && | 	if (nct5104d_find(0x2e, &sio) && | ||||||
| 	    nct5104d_find(0x4e, &sio)) | 	    nct5104d_find(0x4e, &sio)) | ||||||
| 		return -ENODEV; | 		return -ENODEV; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user