mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
tty: Update hypervisor tty drivers to use core stdout parsing code.
The evh_bytechan, hvc_opal and hvc_vio drivers all open code the parsing of the stdout node in the device tree. This patch simplifies the driver by removing the duplicated functionality. Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
0038821803
commit
a752ee56ad
5 changed files with 22 additions and 71 deletions
|
|
@ -36,7 +36,7 @@ struct device_node *of_allnodes;
|
|||
EXPORT_SYMBOL(of_allnodes);
|
||||
struct device_node *of_chosen;
|
||||
struct device_node *of_aliases;
|
||||
static struct device_node *of_stdout;
|
||||
struct device_node *of_stdout;
|
||||
|
||||
static struct kset *of_kset;
|
||||
|
||||
|
|
@ -2063,9 +2063,12 @@ void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align))
|
|||
of_chosen = of_find_node_by_path("/chosen@0");
|
||||
|
||||
if (of_chosen) {
|
||||
/* linux,stdout-path and /aliases/stdout are for legacy compatibility */
|
||||
const char *name = of_get_property(of_chosen, "stdout-path", NULL);
|
||||
if (!name)
|
||||
name = of_get_property(of_chosen, "linux,stdout-path", NULL);
|
||||
if (IS_ENABLED(CONFIG_PPC) && !name)
|
||||
name = of_get_property(of_aliases, "stdout", NULL);
|
||||
if (name)
|
||||
of_stdout = of_find_node_by_path(name);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue