Commit dfd9190c authored by Patrice Chotard's avatar Patrice Chotard Committed by Greg Kroah-Hartman
Browse files

tty: st-asc: Update tty alias



Since dtc v1.4.6-9-gaadd0b65c987, aliases property name
must include only lowercase and '-'.

After having updated all STi boards serial aliases from "ttyASN"
to "serialN", st-asc driver need to be updated accordingly as tty
aliases id is retrieved using of_alias_get_id().

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1bcda09d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -782,6 +782,8 @@ static struct asc_port *asc_of_get_asc_port(struct platform_device *pdev)
	if (!np)
		return NULL;

	id = of_alias_get_id(np, "serial");
	if (id < 0)
		id = of_alias_get_id(np, ASC_SERIAL_NAME);

	if (id < 0)