History

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

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

Baruch Siach committed 11 years ago

Commit 045f32d1 parent 13a7a6a1 file · +0 −4Browse files

Unified · Split

drivers/tty/serial/of_serial.c+0−4
@@ -133,10 +133,6 @@ static int of_platform_serial_setup(struct platform_device *ofdev, · 132 unmodified lines
133133 if (of_find_property(np, "no-loopback-test", NULL))
134134 port->flags |= UPF_SKIP_TEST;
135135
136− ret = of_alias_get_id(np, "serial");
137− if (ret >= 0)
138− port->line = ret;
139−
140136 port->dev = &ofdev->dev;
141137
142138 switch (type) {