Skip to content

Commit

Permalink
Revert "tty/serial: of_serial: add DT alias ID handling"
Browse files Browse the repository at this point in the history
This reverts commit 6d01bb9.

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

Cc: Rob Herring <[email protected]>
Signed-off-by: Baruch Siach <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
baruchsiach authored and gregkh committed Mar 7, 2015
1 parent 13a7a6a commit 045f32d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions drivers/tty/serial/of_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,6 @@ static int of_platform_serial_setup(struct platform_device *ofdev,
if (of_find_property(np, "no-loopback-test", NULL))
port->flags |= UPF_SKIP_TEST;

ret = of_alias_get_id(np, "serial");
if (ret >= 0)
port->line = ret;

port->dev = &ofdev->dev;

switch (type) {
Expand Down

0 comments on commit 045f32d

Please sign in to comment.