mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 08:08:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										35
									
								
								arch/um/kernel/early_printk.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								arch/um/kernel/early_printk.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,35 @@ | |||
| /*
 | ||||
|  * Copyright (C) 2011 Richard Weinberger <richrd@nod.at> | ||||
|  * | ||||
|  * This program is free software; you can redistribute it and/or modify | ||||
|  * it under the terms of the GNU General Public License version 2 as | ||||
|  * published by the Free Software Foundation. | ||||
|  */ | ||||
| 
 | ||||
| #include <linux/kernel.h> | ||||
| #include <linux/console.h> | ||||
| #include <linux/init.h> | ||||
| #include <os.h> | ||||
| 
 | ||||
| static void early_console_write(struct console *con, const char *s, unsigned int n) | ||||
| { | ||||
| 	um_early_printk(s, n); | ||||
| } | ||||
| 
 | ||||
| static struct console early_console_dev = { | ||||
| 	.name = "earlycon", | ||||
| 	.write = early_console_write, | ||||
| 	.flags = CON_BOOT, | ||||
| 	.index = -1, | ||||
| }; | ||||
| 
 | ||||
| static int __init setup_early_printk(char *buf) | ||||
| { | ||||
| 	if (!early_console) { | ||||
| 		early_console = &early_console_dev; | ||||
| 		register_console(&early_console_dev); | ||||
| 	} | ||||
| 	return 0; | ||||
| } | ||||
| 
 | ||||
| early_param("earlyprintk", setup_early_printk); | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228