sandbox: cros_ec: Drop unnecessary init
Since driver model will probe the EC when it is first used, we do not need to init it explicitly. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									60f37fc6aa
								
							
						
					
					
						commit
						06fbf10263
					
				| 
						 | 
					@ -53,18 +53,6 @@ int board_early_init_f(void)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int arch_early_init_r(void)
 | 
					 | 
				
			||||||
{
 | 
					 | 
				
			||||||
#ifdef CONFIG_CROS_EC
 | 
					 | 
				
			||||||
	if (cros_ec_board_init()) {
 | 
					 | 
				
			||||||
		printf("%s: Failed to init EC\n", __func__);
 | 
					 | 
				
			||||||
		return 0;
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	return 0;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef CONFIG_BOARD_LATE_INIT
 | 
					#ifdef CONFIG_BOARD_LATE_INIT
 | 
				
			||||||
int board_late_init(void)
 | 
					int board_late_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -151,7 +151,6 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CONFIG_BOOTARGS ""
 | 
					#define CONFIG_BOOTARGS ""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CONFIG_ARCH_EARLY_INIT_R
 | 
					 | 
				
			||||||
#define CONFIG_BOARD_LATE_INIT
 | 
					#define CONFIG_BOARD_LATE_INIT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define CONFIG_SOUND
 | 
					#define CONFIG_SOUND
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue