Commit 045f32dd authored by Baruch Siach's avatar Baruch Siach Committed by Greg Kroah-Hartman

Revert "tty/serial: of_serial: add DT alias ID handling"

This reverts commit 6d01bb9d.

The exact same code was added in commit 3239fd31 (serial: of-serial: fetch
line number from DT) a few lined above. Doing this once should be enough.

Cc: Rob Herring <robh@kernel.org>
Signed-off-by: default avatarBaruch Siach <baruch@tkos.co.il>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 13a7a6ac
...@@ -133,10 +133,6 @@ static int of_platform_serial_setup(struct platform_device *ofdev, ...@@ -133,10 +133,6 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
if (of_find_property(np, "no-loopback-test", NULL)) if (of_find_property(np, "no-loopback-test", NULL))
port->flags |= UPF_SKIP_TEST; port->flags |= UPF_SKIP_TEST;
ret = of_alias_get_id(np, "serial");
if (ret >= 0)
port->line = ret;
port->dev = &ofdev->dev; port->dev = &ofdev->dev;
switch (type) { switch (type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment